|
|
|
|
|
by psteeleidem
4866 days ago
|
|
FYI, when designing the Raptor Templates language I borrowed that technique from the Genshi templating language:
http://genshi.edgewall.org/wiki/Documentation/xml-templates.... When the template compiler understands the actual HTML structure of the document the compiler can do some really interesting and smart things that would otherwise be impossible with template compilers that just see the document as text. Personally, I really like how the HTML template has the exact same nesting as the output HTML markup that it produces. To me, making the HTML template look as close to the output HTML markup makes things a lot cleaner and easier to understand. |
|