Jaxel
Well-known member
So I am writing an addong, that takes a string, and parses it.
I would like to use XF's built in template parser, so that I can use code like:
So if I have:
How would I run this through the parser?
I would like to use XF's built in template parser, so that I can use code like:
Code:
{xen:if '$var>10', 'true', 'false'}
Code:
$values = array(
'var' => '11'
);
$template = '<div style="color: {xen:if '{$var}>10', 'red', 'blue'}">test</div>';
How would I run this through the parser?
Last edited: