O'Reilly logo

Mastering Xamarin UI Development - Second Edition by Steven F. Daniel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Understanding the Razor templating engine

The Razor templating engine was first introduced as part of the ASP.NET MVC architecture, and was originally designed to run on a web server to generate HTML files to be served to a variety of web browsers. Since Razor made its first appearance on the development scene, the Razor engine has definitely come a long way, and now extends the standard HTML syntax so that you can use C# to express the layout of your HTML files, as well as incorporate CSS stylesheets and JavaScript very easily.

Razor is a markup syntax for embedding server-based code into web pages, and is generally identified as having a .cshtml file extension. When working with the static model class within Razor templates, each Razor ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required