Michael Daly <[email protected]> wrote:
> [...]
> Since $ doesn't have a close, that makes things like {{{xxx|default
> value}}} slightly problematic, since "$xxx|$default_value" is slightly
> more awkward to parse. But that only shows how templates are also
> overly reliant on the pipe (|) symbol - as anyone who has tried to use
> tables in templates has discovered.
> [...]
bash (don't know if standard POSIX) has:
- ${parameter}
- ${parameter:-default}
- ${parameter:?error}
and even string functions:
- $#{parameter}
- ${parameter:offset:length}
- etc.
Personally, whatever programming language would be chosen,
I really like Aryeh's approach to sanitize and "compile" the
template to PHP. It could be used everywhere MediaWiki runs,
it is no hassle to set up compared to installing other in-
terpreters and the performance should be the top of what PHP
has to offer (and *all* templates could be compiled to that
code). From a distance, I think it would even be easier to
have the file/memory/CPU restrictions hacked into the main
PHP interpreter rather than to cook our own soup.
Tim
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l