desugaring of page/template definitions and template calls