Adds basic support for overriding templates