better exception handling
better function template

	- use string '"%(name)%"' instead of random name
	  (this is more correct than the old way)
	- use shorter names
export 'tle'
change terms: tplf -> fn, wrapper -> template