Lua template styles: Inline HTML or DOM generators
Posted: Tue May 06, 2014 1:02 pm
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
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