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
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
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!
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!
http://www.concrete5.org/profile/-/view/79063/...
Or maybe he replies in this thread for you, so you don't have to ask yourself ;)