harrydeluxe / php-liquid

A PHP port of Ruby's Liquid Templates
http://www.delacap.com/artikel/Liquid-Templates/
MIT License
239 stars 119 forks source link

Don't forget to add new tag classes to Liquid.php #22

Closed schmoove closed 7 years ago

schmoove commented 10 years ago

An important addendum to the article on creating new tag blocks: https://github.com/harrydeluxe/php-liquid/wiki/Liquid-for-programmers

You have to add a key for any newly created tag class to the $_coreClasses array: eg: 'LiquidTagForm' => '/Liquid/Tag/LiquidTagForm.class.php' Or it won't get picked up by the parser.