load internal default template and optional external template from url