New templates use cases

I was a little skeptical at first about the new templates but this week I needed to build a simple wifi access page that is by brand and location and that having to include Mvc just to pass some variables to the page seemed like overkill. It was simple and quick with the templates so just wanted to say thanks!

To keep this technical, being able to do this simply and easily is what I’m referring to:

 public object Any(WifiPageRequest request) =>
   new PageResult(Request.GetPage($$"sites/{request.Brand}/index"))
   {
     Model = request
   };
1 Like

Awesome, nice to see more template usage in the wild :smile:

Given the amount of issues I’ve run into with Razor over the years, I’m reluctant to ever use it for anything myself. Now when there’s a feature missing from templates I can just easily add it.