[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: HTML-Embedded Lua?
- From: steve donovan <steve.j.donovan@...>
- Date: Fri, 18 Oct 2013 16:31:13 +0200
On Fri, Oct 18, 2013 at 4:24 PM, Matthias Beyer <mail@beyermatthias.de> wrote:
> This is really handy for doing templating for websites. Is there
> something compareable for lua?
Here is a 100-odd-lines general solution which is pure genius:
http://lua-users.org/wiki/SlightlyLessSimpleLuaPreprocessor
Here used in ldoc to generate pages:
https://github.com/stevedonovan/LDoc/blob/master/ldoc/html/ldoc_ltp.lua
I've wrapped up this very clever and simple processor as pl.template in Penlight