mgo and templates.