SMARTY tpl?
-
My……intuition tells me…TSP using smarty as template engine. Is i’m right?
Is it work’s good? because i’m striping it from my website and replace it with my own template engine.
And i sadly found a truth: my template engine slow than smarty……optimizing…
-
Template engines are ridiculously terrible, Smarty chief among them. Adds a layer of complexity, requires learning a new language, and all of that for what? A few characters fewer in a server-side only file?
Save yourself the trouble. If you want to make a site the good way, use a framework based on the MVC design pattern and that’s enough abstraction for any site you’ll ever build.
-
Same mind to other people in other forum.
But… I actually making my own framework for community websites, include template engine, session control etc….
I tested my script, it’s need about 0.034 secs to create a simple page if Force renew for template is on and data cache module is disabled. If i enable both of that, it’s will takes about 0.015 secs to finish page creating (init few class/lib, send 2 database queries, compile or include 1 template).
I tried to work with non-Object Oriented, stop using class and lib, and do everything in prime way, but finally i got chaos… i think it’s not my style. So i decide to pay the bit slower performance and get more comfortable.
-
i am not all that fond of template engines. they add way too much unneeded crap just to put data into a page.
the framework i use has a built in minimalistic template parser of which i was in need of a few minor additions.
so like FF said : Save yourself the trouble.
-
Chips wrote:
I once tried to use smarty… and gave up about 5 seconds later. Unless your site reaches a certain size, I wouldn’t have thought it worthwhile to really start using those things.Yes, smarty actually big than my scripts…. so that’s the one of reason to make me avoid to use it any longer.
But…template engine…if you guys have any experience to let a htmler to change web UI writen in php…
-
Use a MVC design pattern. Seriously, that’s all you need.
-
-
So, the framework im working for is…. done…almostly…
If any guy want to checkout, here it is:
http://code.google.com/p/faculaframework/