CyberAP
Well-known member
It is possible to pass a variable into <xen:require css="" /> statement?
For example in CSS template I have something like this:
.selector { width: {$myVar}px; }
In container template I would like to have something like this:
<xen:require css="my.css"><xen:set var="$myVar" value="50" /></xen:require>
It works with <xen:include /> but it does not with <xen:require />. Maybe there is a proper way of doing it?
For example in CSS template I have something like this:
.selector { width: {$myVar}px; }
In container template I would like to have something like this:
<xen:require css="my.css"><xen:set var="$myVar" value="50" /></xen:require>
It works with <xen:include /> but it does not with <xen:require />. Maybe there is a proper way of doing it?