[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] lua-CodeGen 0.1.0
- From: François Perrad <francois.perrad@...>
- Date: Thu, 2 Sep 2010 14:12:20 +0200
2010/9/2 Fabio Mascarenhas <email@example.com>
On Thu, Sep 2, 2010 at 7:12 AM, François Perrad
>> How would it compare in features to (say) Cosmo?Actually Cosmo also draws from some of the ideas in Parr's work on
> Cosmo depends on LPeg, lua-CodeGen has not external dependency.
> lua-CodeGen has a theorical background, see T. Parr's papers.
StringTemplate (strict separation of view code, "functional" template
expansion, probably others, it has been a while since I have read the
papers). I think the main difference (and main limitation of Cosmo) is
that Cosmo subtemplates are all "inline" in the same template file,
though in actual use I fix that with import-like template selectors.
By contrast, lua-CodeGen doesn't allow "inline" subtemplate.
So a template is splited in small chunk.
I think that Cosmo & lua-CodeGen don't differ in term of features,
but differ in term of management of code.
It's more easy to reuse/modify the small chunks.
>> steve d.