lua-users home
lua-l archive

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

> Hi,
> Did you patch the old (gsub-based) Cosmo or the newer (LPEG-based) ones? If
> the former I think it's easier if you just tell what you did. :-)

The gsub-based one, and an old one of those as well :)

>From memory I changed it to allow:
- subtemplate inclusion in the form of a file like: $<<html/shared/foo.lua.tpl>>
- field definition from a template: $=:foo[[whatever]]
  Then $foo will spit out "whatever"
- direct inclusion of a config setting (see my config module
  Something like $ which will look into 

Nothing too horrible but still necessary to me :)