954,598 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Which is the best templating system

We are looking at rewriting our current content management system so that it works with the most popular/easiest to use/best templating system.

Our current system is to generate XML and then use XSLT to transform the XML to html, so the current templates are XSLT. The feedback we have had from designers is that XSLT is a horrible language, and we have to agree :). Though it does have some benefits like being executed by most browsers.

Unfortunately the browsers are not supporting XSLT 2.0, along with frameworks like dotNet.

Please let me know your favourite templating systems and why they are better or worse than others.

RonaldDuncan

RonaldDuncan
Newbie Poster
8 posts since May 2009
Reputation Points: 10
Solved Threads: 0
 

Ronald,

Agreed, XSLT is pretty unfriendly. I go there as little as possible.

This is a good review is php templates:
http://codeutopia.net/blog/2007/11/05/different-php-template-engines/

Smarty seems to be everybody's benchmark.

Would require a major shift to server-side of course, but maybe a move worth making.

Personally, my favourite is the phpBB template class - largely because I have used it a lot and know my round it.

Airshow

Airshow
WiFi Lounge Lizard
Moderator
2,683 posts since Apr 2009
Reputation Points: 321
Solved Threads: 372
 

One of our team wrote a gossip site in smarty, and liked the templating system.

We have also tried Mako, and the person with smarty experience thought it was better. However, it means moving over to python, which has advantages and disadvantages.

RonaldDuncan
Newbie Poster
8 posts since May 2009
Reputation Points: 10
Solved Threads: 0
 

The best template system is none.

MidiMagic
Nearly a Senior Poster
3,319 posts since Jan 2007
Reputation Points: 730
Solved Threads: 182
 
The best template system is none.

We already support that, it is making it easy to people to write websites with the common navigation, adds and other bits easily included that we want to provide in a better way for designers to interact with our system.

RonaldDuncan
Newbie Poster
8 posts since May 2009
Reputation Points: 10
Solved Threads: 0
 

smarty for the reason that they are very popular and we are afterall sheep

!!underlink!!
Newbie Poster
10 posts since May 2009
Reputation Points: 10
Solved Threads: 2
 

Ronald,

Don't dismiss Servere Side Includes (SSI).

OK, it's not proper templating by itself but it's great for throwing common, static chunks into as many web pages as you want.

At one time, I worked on someone else's overcomplex JSP site, Enterprise Beans the full thing, when SSI would have done the job. They couldn't see it!

Something I have yet to see (I must experiment one day) is SSI in conjunction with something that updates the includes with dynamic content when available. Would be good for server-side asynchronous update (not Ajax - that's a client-side UI technique).

Airshow

Airshow
WiFi Lounge Lizard
Moderator
2,683 posts since Apr 2009
Reputation Points: 321
Solved Threads: 372
 
Ronald, Don't dismiss Servere Side Includes (SSI). Airshow


The old solutions are often the best. SSI was superseded by frames, which then got junked because the search engines did not rank them and now we have moved on from table to div's. But for showing blocks of nav content SSI does this great. I have not played with them for over 10 years.

I will also have to have a think about how we could pull together a site with SSI.

One of our issues is that we have close to 1 million users to we compress all our content to reduce bandwidth when serving content, and I think with SSI we would need to do that on the fly rather than pre-compressing all the static content.

RonaldDuncan
Newbie Poster
8 posts since May 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You