Tornado using templates