Added snippet method to load template from the same page.