Initial work for template rendering