move template to conf and access the static resource