Changes start and end fragment from static files to templates.