
Programming Razor
Tools for Templates in ASP.NET MVC or Webmatrix
Jess Chadwick(Author)
O'Reilly (Publisher)
Published on 25. October 2011
Book
Paperback/Softback
118 pages
978-1-4493-0676-2 (ISBN)
Description
This book will begin with an introduction to the Razor syntax, where/how it fits in to the Web Matrix and ASP.NET MVC platforms, and how to effectively leverage the syntax on those platforms. It will continue to dive deeper, espousing some best practices and useful sample code for the Web Matrix and ASP.NET MVC platforms. Finally, the book will examine the underlying APIs themselves (which are separate from the syntax discussed previously), explain how the Razor API works, and show how to extend the API with custom functionality, even in non-web scenarios.
More details
Language
English
Place of publication
Sebastopol
United States
Target group
Primary & secondary/elementary & high school
Product notice
Paperback (trade)
Unsewn / adhesive bound
Dimensions
Height: 233 mm
Width: 185 mm
Thickness: 13 mm
Weight
207 gr
ISBN-13
978-1-4493-0676-2 (9781449306762)
Copyright in bibliographic data and cover images is held by Nielsen Book Services Limited or by the publishers or by their respective licensors: all rights reserved.
Schweitzer Classification
Other editions
Additional editions

E-Book
09/2011
1st Edition
O'Reilly
€7.99
Available for download
Person
Jess Chadwick is an independent software consultant specializing in web technologies. He has over a decade of development experience ranging from embedded devices in start-ups to enterprise-scale web farms at Fortune 500s. He is an ASPInsider, Microsoft MVP in ASP.NET and is an avid community member, frequently delivering technical presentations as well as leading the NJDOTNET Central New Jersey .NET user group. Jess lives in the Philadelphia, PA area with his wonderful wife, baby daughter, and black lab.
Content
Preface;
RazorPad: A Lightweight Razor Editor;
Conventions Used in This Book;
Using Code Examples;
SafariĀ® Books Online;
How to Contact Us;
Chapter 1: Introduction;
1.1 A Brief History of Microsoft's Web Development Platforms;
1.2 Hello, Razor!;
1.3 Differentiating Code and Markup;
1.4 Comments;
Chapter 2: Razor and Microsoft WebMatrix;
2.1 Introducing ASP.NET Web Pages;
2.2 Installing WebMatrix;
2.3 Your First WebMatrix Website;
2.4 Data Access with WebMatrix;
Chapter 3: Organizing Razor Templates;
3.1 Layouts;
3.2 Partial Views;
3.3 Razor Helpers;
3.4 Razor Helper Packages;
3.5 Razor Helpers versus Partial Views;
3.6 Executing Common Code;
Chapter 4: Razor and ASP.NET MVC;
4.1 Installing ASP.NET MVC;
4.2 ASP.NET MVC View Engines;
4.3 Implementing a Blog Site Using ASP.NET MVC;
4.4 Authoring ASP.NET MVC Views with the Razor Syntax;
4.5 Changing the Base Class;
4.6 Layouts and Content Pages;
4.7 Razor View File Locations;
4.8 Html and Url Helper Classes;
4.9 ASP.NET MVC's Razor View Page Rendering Life Cycle;
Chapter 5: The Razor API;
5.1 Razor Templates: From Markup to .NET Code;
5.2 Meet the Players;
5.3 Advanced Templating Logic;
Chapter 6: Advanced Techniques;
6.1 Inline Templates and Templated Delegates;
6.2 Sharing Views Between Projects;
6.3 Unit Testing Razor Views;
6.4 Applying Razor to Text-Based Scenarios;
Chapter 7: Conclusion;
;