Better HN
top
new
best
ask
show
jobs
Log in
Sign up
500 Lines or Less – A Template Engine | Better HN
500 Lines or Less – A Template Engine
(aosabook.org)
17 points · by
kasbah
· 11y ago · 3 comments
Comments
[–]
Poiesis
11y ago
For what it's worth, the excellent Python micro-framework Bottle includes a simple template engine taking about 150 lines over two classes:
https://github.com/bottlepy/bottle/blob/master/bottle.py#L34...
[–]
jqm
11y ago
Bottle is indeed an excellent tiny framework (although I usually use it with Jinja2 when it's being used for html generation).
[–]
nreece
11y ago
Plenty of micro-frameworks out there:
http://microjs.com/#templating
500 Lines or LessA Template Engine
aosabook.org