Make template fragments nestable