successfully generate templates, now just need to figure out how to pass locals properly