On 24/08/12 14:07, Derric Atzrott wrote:
Maybe it's
just me opinion, but I believe that even with Lua, the existing
templating system is not entirely obsolete. I'm sure ParserFunctions still
has a legitimate purpose. For example, what about a template that's just a
simple if statement (if this, else that). There's not really a need to make
a Lua module for something that basic.
I'm 100% in agreement on this. I think
that Lua will probably be used, and
perhaps quite heavily, but only in the more advanced templates. Simple
templates will probably continue to use the current standard template
creation proccesses. Honestly I can't see why they wouldn't. Its a whole
lot simplier for most people than learning Lua and most people don't need
Lua, just some people.
Thank you,
Derric Atzrott
That's right. I see the hierarchy as being something like this:
* simple templates written in the existing template markup, exactly as
done at present
* complex templates written in Lua, maintained on-wiki, perhaps in a
central repositry, but again using normal wiki processes for editing,
protection, etc.
* common library routines written in Lua for addressing common utility
functions used in many complex templates, maintained somewhere like git,
with much stricter check-in rules, and viewed as being part of the core
software
Possibly ParserFunctions will end up being semantic sugar for invoking
primitives written in Lua, as part of that set of library routines.
-- N.