2009/6/30 Michael Daly <michael.d...@kayakwiki.org>: > Brion Vibber wrote: > > Any thoughts? Does anybody happen to have a PHP implementation of a > > Lua or JavaScript interpreter? > > Rather than reinventing the wheel, why not look at fixing the existing > template syntax?
I would support that. We really don't need a Turing-complete template system. > As an aside - obliging template writers to declare variables used in the > template, say, as a definition of the input format at the top of the > template definition, would make parsing the variables out later a tad > easier. If it's declared, it's a variable; if not, it's not a variable > and is treated as plain text. Thus the first line of a template would > be the example of its use: > > Template:foobar > ---------------------------------------------------------------------- > {{Foobar|$var1|$var2|$andAnotherVar}} > ...(implementation)... > ---------------------------------------------------------------------- How does that work with anonymous variables? Are all $[NUMBER] style names count as auto-declared? _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l