Note:
- This class extends the original Magento 1 class
Varien_Filter_Template
. - If you use it in newer Magento 1 versions please upgrade your code: compare filter method code from original class and change
MyLibNamsepace_Filter_Template
accordingly. - To make the above code work with emails you need to rewrite the core class
Mage_Core_Model_Email_Template_Filter
to extend the bove class instead of extending default classVarien_Filter_Template
Usage:
{{outer_if myVar!=="ipsum"}} {{if customer.getGroupId()==2}} Public text