Foundation for fetching external templates