subtemplate expansion support - templates have moved into their own module