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
  http://lua.net-core.org/sputnik.lua?p=Telesto:About)
  Something like $##foo.bar.baz## which will look into 
  "config.settings.foo.bar.baz"

Nothing too horrible but still necessary to me :)