added support for default_template if no template is specified in content