[4146] Szablony (mako).

https://gist.github.com/lukkolstx/fe374e7ebb4112f45041
Fixed. Please review.
Too much work is done here. Why not use `render_template()`?