move sample code into handlabars and escape