Hi guys,
I want add to Twig and Dwoo drivers ( of Parser Package ) the ability to load parser Extensions/Plugins.
Twig extensions : http://www.twig-project.org/doc/extensions.html
Dwoo plugins : http://wiki.dwoo.org/index.php/WritingPlugins
Any suggestion on how to implement a standard method for this two parsers to load extensions before calling a view??
This because is helpful loading extensions for all template views.
Cheers
Isn't that already possible through config: https://github.com/fuel/parser/blob/develop/config/parser.php (you should add a parser.php to your app config if you want to edit, don't edit the package files).
If not feel free to see if it's possible to add this through config. There is most of the time a parser object available for each class which you can reach like this: View_Dwoo::parser() or View_Twig::parser() and then chain methods after that.