add component markers as comments to the beginning of component templates