Thread:SamwiseFilmore/@comment-30645975-20170607023329/@comment-25101690-20170612165435

Some of the features you listed, such as variables, already go way beyond the scope of a templating language. Once you got that far, you (or the users of the language) will want more and more features in that direction until you'll eventually end up like PHP: A small personal hypertext preprocessor, that eventually grew to an OOP language that can rival Java.

Maybe there could be two languages for a wiki: One is used for templates and functional pages and has all the sweet programming features, the other is a pure markup language that can only specify placeholders for template content. This way we could keep it simple for the normal editors.