Move web stuff to a closure templates file