TT is pretty old and dated, so I've endeavored to implement Jade in Perl. Jade is a modern markup that is quickly becoming somewhat of a standard for Node.js.
Here is what Jade looks like, (and all of this currently works in my port).
doctype html html(lang="en") head title= pageTitle script(type='text/javascript'). if (foo) { bar(1 + 5) } body h1 Jade - node template engine #container.col if youAreUsingJade p You are amazing else p Get on it! p. Jade is a terse and simple templating language with a strong focus on performance and powerful features.You can read more about it on jade-lang.com/ There are a lot of key features to it. The big thing is, of course, not having to manage closing tags with whitespace sensitivity. This may be very un-Perlesque. But all good Perl users should join the rest of the rest of world in passionately hating sgml/xml. I've got very few tests on it currently, and most importantly it does not set out to recreate a DOM. It's a basic Jade recursive decent parser that supports interpolated (Blocks) and compiled (includes). The only things not yet implemented are in the POD. I plan on getting to them in the future.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: For magnificent glory, a TT Replacement. (consideration)
by LanX (Saint) on May 21, 2014 at 02:27 UTC | |
Re: For magnificent glory, a TT Replacement.
by ysth (Canon) on May 20, 2014 at 23:18 UTC | |
by Anonymous Monk on May 21, 2014 at 02:49 UTC | |
Re: For magnificent glory, a TT Replacement.
by Anonymous Monk on May 20, 2014 at 23:34 UTC | |
Re: For magnificent glory, a TT Replacement.
by sundialsvc4 (Abbot) on May 21, 2014 at 13:12 UTC | |
Re: For magnificent glory, a TT Replacement.
by Anonymous Monk on May 20, 2014 at 21:38 UTC | |
Re: For magnificent glory, a TT Replacement.
by boftx (Deacon) on May 20, 2014 at 22:31 UTC |
Back to
Meditations