adds basic support for templating files