support for repeating html fragments in templates