Using a Templating Engine (Twig, Smarty, Mustache)

Permalink
Hi,

I was just wondering if anyone has had any success in adding a templating engine to Concrete5.7 for use in themes?

We can build out our templates in PHP however we really want to be able to just pass this work over to our front-end developers with a data schema to plug in.

I've managed to get Twig working via a package but not as part of the entire application and editing of a theme, can anyone point me in the right direction to add a templating engine (Twig, Smarty or Mustache preferably) to Concrete5.7?

Thanks,
Scott

 
ramonleenders replied on at Permalink Reply
ramonleenders
Overriding the view class may work, but you'll have to ask Korvin for a more detailed answer:

http://www.concrete5.org/profile/-/view/79063/...

Or maybe he replies in this thread for you, so you don't have to ask yourself ;)
Mainio replied on at Permalink Reply
Mainio
I'm not sure if you have already bumped into this (as you mentioned "package") but we have implemented twig integration for c5:
https://github.com/mainio/c5pkg_twig_templates...

For example this uses it:
https://github.com/mainio/c5_symfony_forms_example...

We would love to have this working with themes too (see the roadmap). If you are planning to put some time into this, consider forking the package and providing your back as a pull request!