Now passing site_root function to templates