apply razor template to content