convert html to templates.  create objects for each module