3 ms·
Well, it doesn't just appear to be an LFM, it was explicitly designed as such. I don't think that the Python syntax is an inappropriate choice to be used as a
by reitzensteinm 19y ago
Well, it doesn't just appear to be an LFM, it was explicitly designed as such.
I don't think that the Python syntax is an inappropriate choice to be used as a fully enabled template language - you could bolt on <% end %> tags with a preprocessor that indents automatically pretty trivially. Such a template language just doesn't exist yet.
- mhartl 19y agoRead the quote again: that's the canonical definition of an LFM. It's a language that restricts the user's power, not by accident, but by design.
- reitzensteinm 19y agoSorry, I meant that the authors themselves say that it's designed as one - i.e. there's no 'appears to be' about it. But not only was I unclear, in hindsight it was a total nitpick to boot. :)
- mhartl 19y agoAh. Gotcha. Sorry for the misunderstanding.
- adrianh 19y agoI've seen a couple of implementations of "Python as a template language with 'end' statements" over the years. Here's one: http://www.kryogenix.org/code/vellum/docs/templates.html http://www.kryogenix.org/code/vellum/docs/templates.html Another one is Python Server Pages: http://www.ciobriefings.com/psp/ http://www.ciobriefings.com/psp/ (Edited to fix typo.)
- reitzensteinm 19y agoThanks for the links. I wonder how long it will be until someone puts one in Django.