cakephp / twig-view

Twig View for CakePHP
MIT License
13 stars 7 forks source link

New Twig file loader that support all View template names + paths #51

Closed othercorey closed 4 years ago

othercorey commented 4 years ago

Closes https://github.com/cakephp/twig-view/issues/50

This should give users an easier upgrade path and more flexibility when loading/extending templates directly. Everything View allows when loading templates is allowed for internal Twig template names.

The only caveat with this new loader is template names that were including the .twig extension must be changed. I didn't think it was worth supporting that buggy requirement given we just released this and most users won't have that.