setup basic template compilation