Lua template styles: Inline HTML or DOM generators

Discussion to talk about software related topics only.
Post Reply

Which style of template engine would you prefer?

Inline HTML (http://www.savarese.com/software/ltp/ https://github.com/henix/slt2)
0
No votes
DOM generator (http://www.luanova.org/orbit1-2 )
0
No votes
Both
0
No votes
 
Total votes: 0

User avatar
dciliske
Posts: 623
Joined: Mon Feb 06, 2012 9:37 am
Location: San Diego, CA
Contact:

Lua template styles: Inline HTML or DOM generators

Post by dciliske »

I'm looking to add some more reasons to use Lua and make it friendly to use on our platforms. My next goal is to make it possible to have scripting for webpages located not in the application image. For this, we need to pick a template engine to use.

There are two main style of template engines out there: inline HTML, where the scripting/variable lookup is directly inserted into the template (this is how PHP, and the standard CompHTML work) and DOM generators, which take a more object/dictionary based approach to constructing the page. These DOM generators first construct the object model and then render the full HTML.

I'm interested in what kind of feedback you want might have on the subject.

-Dan
Dan Ciliske
Project Engineer
Netburner, Inc
Post Reply