Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
namespace AlloyDemo.Controllers
[TemplateDescriptor(Inherited = true)]
public class DefaultPageController : PageControllerBase<SitePageData>
public ViewResult Index(SitePageData currentPage)
var model = CreateModel(currentPage);
return View($"~/Views/{currentPage.GetOriginalType().Name}/Index.cshtml", model);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment