T4MVC is a T4 template for ASP.NET MVC apps that creates strongly typed helpers that eliminate the use of literal strings in many places.
e.g. instead of
@Html.ActionLink("Dinner Details", "Details", "Dinners", new { id = Model.DinnerID }, null)
T4MVC lets you write
@Html.ActionLink("Dinner Details", MVC.Dinners.Details(Model.DinnerID))
and that's just the beginning!
- Install T4MVC in your MVC app using NuGet
- Install Fix for Visual Studio 2015 Update 1
- Watch: watch an 8 minute intro video on Channel 9
- Learn: visit the Documentation page
- Install a VS Extension to automatically rerun T4MVC on build. You can use AutoT4MVC or Chirpy.
- Discuss: Discuss it on GitHub
- Contribute: learn how on the Contributor page
- News: Follow David Ebbo on Twitter to get T4MVC announcements.
- History & release notes: change history
- Twitter quotes: cool things people are saying on Twitter here
T4MVC is part of the MvcContrib project, which is part of the Outercurve Foundation