![]() Just as with the source code that we developers write, Razor API-generated code compiles into new. NET source code - the same kind of source code that you and I write every day. The Razor API translates these plain text templates to. Templates based on the Razor syntax combine code and content in powerful ways. The Razor Template Lifecycleįigure 1 shows the lifecycle of a Razor template. This article will explore the Razor API and follow the lifetime of a Razor template from text to powerful templating solutions, including examples such as unit testing ASP.NET MVC views and creating a highly-maintainable email generator. The Razor API exposes a powerful library for parsing, compiling, and executing templates created using the Razor syntax. In fact, with a working knowledge of the Razor API, you can leverage Razor templates in any application. The Razor syntax is much more than just a clean way to write ASP.NET MVC Views and WebMatrix web pages. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |