www code and templates