improved template engine doc