Bake templates are just view files

themes will be handled exactly as they are for other views - by using
plugins
unset variables not used after rendering