Which template engine do you use..? |
[eluser]louis w[/eluser]
Also JS standards are to keep them on the same line. [quote author="DerekF" date="1205283625"]Personally, I'm a big fan of the PEAR coding standards for the most part. So, yeah, count me in those who hate the newline-brace-newline convention. :-)[/quote]
[eluser]dtrenz[/eluser]
we could do a whole separate thread on PHP coding standards & best practices. and we probably should.
[eluser]Techie-Micheal[/eluser]
[quote author="louis w" date="1205284592"]Yea, I feel this discussion could get heated.[/quote] Heated? I don't think it is. Offtopic? Definitely. ![]()
[eluser]matthewr[/eluser]
I've used Smarty and CI's parser library. And in the end, i figured out that i didn't need them. It just ads to the confusion and coding time. I'm sticking to pure PHP from now on. ![]()
[eluser]meglio[/eluser]
xwero, I'm using PHPTAL for last 2 years after trying almost all of them. I agree - the best is PHPTAL. The only bad thing is that it can't be used to generate plain text - so anything else must be used in case of email templating etc.
[eluser]InsiteFX[/eluser]
If you think short tags are good take a look at the problems that are caused by ereg! Now go through all your code and change those to preg_match, this is whats causing most of the problems when you go from PHP4 to PHP5! Enjoy InsiteFX
[eluser]theprodigy[/eluser]
Just to put my two cents in: Templating: Pure PHP I already have to know HTML, JS, CSS, PHP. Why should I need to learn another language just to output something my programming language already can? Curly Brace: New Line I can basically scan the left hand side of a file and know exactly where everything begins and ends Inside View: if...endif, foreach...endforeach, etc I think it looks cleaner. When in a view, I expect to see HTML markup. I know logic is there, but it breaks the flow to see lots of curly braces And just for an extra cent or two: Indentation: Tabs I prefer to hit the right arrow key once over having to hit it 3, 4, or 5 times to get to the same place. IDE: vi / vim Comes standard on Linux / Unix / Mac, and PortableCygwin makes it free on Windows as well
[eluser]sihijau[/eluser]
for me view=template RAW PHP+HTML is faster ![]() i have not use template system u listed above |
Welcome Guest, Not a member yet? Register Sign In |