__construct()
__construct()
Pack a hash of CSS styles into a single attribute.
Use with unpackStyles to manipulate CSS styles.
{% set myStyles = unpackStyles(styleString) %}
{% set myStyles = myStyles|merge({
'width': '100%',
'margin': 'auto'
}) %}
<div style="{{ packStyles(myStyles) }}"></div>