Go to file
N. Taylor Mullen 09ac126ecf Make single line single file scoped directives automatically import.
- Added an inner pass inside of the intermediate lowering phase to determine which directives get flowed to the final document. There were many ways to accomplish this but in order to keep the last wins mechanic for non-auto imported directives I had to let the directives get created and then removed based on if they were inherited.
- Added error case if a user attempts to import a block directive with a `FileScopedSinglyOccurring` directive usage.
- Added test cases that validate directives are properly inherited at the intermediate lowering phase.
- Updated a few tests that had incorrect assumptions.
- Left the default directive passes alone in regards to determining the "imported" directive to enable users to add their own model, inherits, etc. directives that take precedence.
- Normalized the passes in the intermediate lowering phase to handle directives identically (we don't conditionally lower anymore).

#1376
2017-06-26 16:36:54 -07:00
build Revert "Revert "Update Roslyn Version to support C# 7.1"" 2017-06-14 12:38:22 -07:00
shared/Microsoft.AspNetCore.Razor.TagHelpers.Testing.Sources Remove old razor 2017-03-17 14:58:13 -07:00
src Make single line single file scoped directives automatically import. 2017-06-26 16:36:54 -07:00
test Make single line single file scoped directives automatically import. 2017-06-26 16:36:54 -07:00
tooling/Microsoft.VisualStudio.RazorExtension Add DisplayName and Description for directives 2017-06-07 13:37:34 -07:00
.editorconfig Add .editorconfig 2017-02-24 09:54:56 -08:00
.gitattributes
.gitignore Use project.json for the VSIX project 2017-06-03 17:27:35 -07:00
.travis.yml Switch off Travis container-based infrastructure 2017-03-21 13:39:05 -07:00
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 Third party rule name changed 2017-04-11 10:04:29 -07:00
README.md
Razor.sln Compile CodeGeneration tests 2017-05-16 16:26:47 -07:00
appveyor.yml Update appveyor and travis settings 2017-03-14 13:41:17 -07:00
build.cmd
build.ps1 Updating build scripts to point to 2.0.0-preview2 KoreBuild 2017-05-31 19:53:31 -07:00
build.sh Updating build scripts to point to 2.0.0-preview2 KoreBuild 2017-05-31 19:53:31 -07:00
version.props Updating versions to preview3 2017-06-01 10:47:38 -07:00

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.