3 ms·
Yea, everyone always said that Python is no good for embedding in template languages because of its significant whitespace. Weby Templates proves that whitespa
by ljlolel 16y ago
Yea, everyone always said that Python is no good for embedding in template languages because of its significant whitespace.
Weby Templates proves that whitespace is actually an asset. A number of Python templaters (like yours), lisp templates, and other language templates have a system like yours, nested lists. But they quickly become unworkable, lack the ability to do if statements (simple branching), and not having to put end tags ("))") is half the reason you use Python!
Python's whitespace proves to make a much better language for templates than any other.
My "success" may look enviable, but it's luck. Except not quite luck. When I visited California, I wrote a script to email over 200 companies. Only a few replied. Is that luck, or did I make that?