Three other enhancements we are working to enable in a
future preview refresh are:
The ability to use a @model statement at the top of a
“Razor” file instead of having to explicitly inherit from a base class.
This reduces the code and simplifies it.
The ability to specify a default LayoutPage for the site to
avoid having to explicitly set it within each view template. This further
reduces the code within the view template, and makes your code more DRY.
The ability to unit-test individual “Razor” template files
without having to run the application or launch a web-server.
With these first two changes the above Browse template will
be able to be written as simply:
The
above template syntax will be supported in a future preview refresh. Full
colorization and code-intellisense will be provided within the editor.