Added first draft of template engine integration