fuel/parser — pull request #54 by dmyers (2012-09-23 21:57:23+00:00)
Title: Added default extension and made setting view filename optional

What do you think of adding a default extension to the config file?

Currently to make Twig my default with .html as the extension I have to extend the Parser\View class, I think it would be cleaner to build into parser as a config.

Also maybe this could also make the set_filename optional if you don't pass a file into the forge function which would just load up your View_Driver_Name for you and let you set the filename later which would be more aligned with fuel's core view class.

This makes it easier to override core fuel views as well for example the production error calls View::forge('errors/production');

This is based on my experience using both fuel core's View and the View Parser class with Twig.

Thoughts?