This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

[Symfony2] Please, remove hard-linking of twig inside framew

Requests for new symfony features.

[Symfony2] Please, remove hard-linking of twig inside framew

by Mikhus » Tue Sep 20, 2011 11:10 am

Symfony is awsome. Instead of hard-linking with twig templating system inside a framework. I propose to let user to choose which templating system to use. Ok, good to have something by default. I even tell that let's it will be twig. But, please, implement a clear way how to completely replace a twig with something another. Pure PHP, for example.

Let's say that I expect that framework should provide a clear interface to integrate any of templating system into it. It's enough.
Mikhus
Junior Member
 
Posts: 1
Joined: Tue Sep 20, 2011 10:30 am

Re: [Symfony2] Please, remove hard-linking of twig inside fr

by halfer » Sat Oct 22, 2011 4:08 pm

I am fairly sure you *can* use raw PHP as the templating layer in Symfony 2 - I think I read something on this. Isn't it down to the extension of the template files you use? (I don't use Symfony 2, so am not sure myself).
halfer
Faithful Member
 
Posts: 10148
Joined: Mon Jan 30, 2006 1:16 pm
Location: West Midlands, UK

Re: [Symfony2] Please, remove hard-linking of twig inside fr

by bjo3rn » Sat Nov 26, 2011 7:02 pm

halfer is right. If you read the documentation on templating in Symfony2 you'll notice that all examples are provided in Twig and PHP plus there is a cookbook entry on this exact topic.

Björn
User avatar
bjo3rn
Faithful Member
 
Posts: 1245
Joined: Fri Jun 17, 2011 10:03 am
Location: Germany