Welcome Guest, Not a member yet? Register   Sign In
Which template engine do you use..?
#51

[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]
#52

[eluser]dtrenz[/eluser]
we could do a whole separate thread on PHP coding standards & best practices.

and we probably should.
#53

[eluser]louis w[/eluser]
Yea, I feel this discussion could get heated.
#54

[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. Tongue
#55

[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. Smile
#56

[eluser]xwero[/eluser]
I had to pick a templating engine recently and i went for phptal. I don't like how the other tempating engines mimic php escaping. Putting the templating meta data into the tags is a brilliant idea.
#57

[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.
#58

[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
#59

[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
#60

[eluser]sihijau[/eluser]
for me
view=template
RAW PHP+HTML is faster Smile

i have not use template system u listed above




Theme © iAndrew 2016 - Forum software by © MyBB