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