Do this so each template can set the class of the main block according to what kind of template it is.