Splitted templates into macros.