lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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