tpler/__init__.py: improved template handling