fuel / parser

Fuel PHP Framework - v1.x template parser package adapters
http://fuelphp.com
64 stars 45 forks source link

Additions to twig extension #45

Closed dmyers closed 12 years ago

dmyers commented 12 years ago

I added these to my own twig extension for my apps and thought I would share, what do you guys think?

livedata commented 12 years ago

creating a copy of 'parser.php' and puting it in app/config, then adding:

'include' => APPPATH.'vendor'.DS.'Twig_Enhanced_Fuel_Extension.php',

under Twig_View key and putting 'Twig_Enhanced_Fuel_Extension' in 'extensions' seems to be enought for anyone who wants to add some more functionality, but it needs to be documented how exactly to do it 'right' ;-)

btw. less(css) or some similar extension seems to be mandatory these days...

WanWizard commented 12 years ago

This pull request can no longer be merged.