managing "inside" template to allow nesting