ASP.NET MVC today has the concept of “HTML Helpers” – which
are methods that can be invoked within code-blocks, and which encapsulate
generating HTML. These are implemented using pure code today (typically
as extension methods). All of the existing HTML extension methods built
with ASP.NET MVC (both ones we’ve built and ones built by others) will work
using the “Razor” view engine (no code changes required):