Go to file
N. Taylor Mullen 2a6f0e4dc9 Productionize the csharp rendering context APIs.
- Rename `CSharpRenderingContext` => `CodeRenderingContext`.
- Rename `CSharpCodeWriter` => `CodeWriter`
- Rename `BasicWriter` => `IntermediateNodeWriter`
- Rename `...BasicWriter` => `...NodeWriter`
- Made `CodeRenderingContext` a public abstract API. Left temporary TagHelper pieces in the class since these will be removed soon.
- Moved several `CodeRenderingContext` methods into extension methods. These make use of the Items collection.
- Moved the reporting of missing code target extensions into the `ExtensionIntermediateNode`. This is the integration point of `CodeTarget`s and `CodeRenderingContext`s; therefore, it made more sense existing there.
- Left SetRenderChildren/SetRenderNode as extension methods due to how they're wired up. Aka, to create a `CodeTarget` you need a `CodeRenderingContext`... To Create a `DocumentWriter` you need a `CodeTarget`... To set the render methods on the context you need a `DocumentWriter`.
- Updated tests to utilize the new code renering constructs.
- Moved code generation testability features from `CSharpLoweringPhase` to the `CodeRenderingContext.Items`.

#1043
2017-06-30 16:35:53 -07:00
build Update to Roslyn 2.3.0-beta3 version 2017-06-30 11:35:59 -07:00
shared/Microsoft.AspNetCore.Razor.TagHelpers.Testing.Sources
src Productionize the csharp rendering context APIs. 2017-06-30 16:35:53 -07:00
test Productionize the csharp rendering context APIs. 2017-06-30 16:35:53 -07:00
tooling/Microsoft.VisualStudio.RazorExtension Add DisplayName and Description for directives 2017-06-07 13:37:34 -07:00
.editorconfig
.gitattributes
.gitignore Use project.json for the VSIX project 2017-06-03 17:27:35 -07:00
.travis.yml
CONTRIBUTING.md
LICENSE.txt
NuGet.config Removed Roslyn feed as we are now mirroring these packages 2017-06-12 08:16:11 -07:00
NuGetPackageVerifier.json
README.md
Razor.sln
appveyor.yml Restore the VSIX project with MSBuild instead of NuGet.exe (#1471) 2017-06-27 10:28:23 -07:00
build.cmd
build.ps1
build.sh
version.props

README.md

Razor

AppVeyor: AppVeyor

Travis: Travis

The Razor syntax provides a fast, terse, clean and lightweight way to combine server code with HTML to create dynamic web content. This repo contains the parser and the C# code generator for the Razor syntax.

This project is part of ASP.NET Core. You can find samples, documentation and getting started instructions for ASP.NET Core at the Home repo.