Cast debug flag to int
Set container's class to be template name
Server input page+form