[luci] [PATCH 0/4] Add support for string templates to the parser
Matthias Schiffer
mschiffer at universe-factory.net
Sun Jul 27 04:44:55 CEST 2014
Hi,
this series adds support for templates from strings to the parser by
introducing a new function render_string in the luci.template module.
This makes the template parser much more versatile; we use this feature
in our Freifunk Firmware builder Gluon [1].
Thanks,
Matthias
[1] https://github.com/freifunk-gluon/gluon
Matthias Schiffer (4):
libs/web: rename template_parser field "mmap" to the more generic
"data"
libs/web: remove strange 'static' on variable declaration
libs/web: add support for string templates to the template parser
libs/web: add support for string templates to luci.template module
modules/base/luasrc/template.lua | 30 +++++++++++++----
modules/base/src/template_lualib.c | 24 ++++++++++---
modules/base/src/template_parser.c | 69 ++++++++++++++++++++++++++++----------
modules/base/src/template_parser.h | 3 +-
4 files changed, 96 insertions(+), 30 deletions(-)
--
2.0.3
More information about the luci
mailing list