make templates use text/template type