Go to file
N. Taylor Mullen e9292a0e30 Add ability to write start tag only `TagHelper` elements.
- To write a start tag only `TagHelper` you can now utilize the `TagStructure` property on the `TargetElement` attribute. If none is specified it'll be treated as unspecified and default to old behavior of being start/end tag or self-closing.
- Added `TagMode` to showcase what the user initially wrote in their Razor document. This way `TagHelper`s can flow end-to-end in thesame format as they were written with.
- Updated code generation to specify `TagMode` instead of the boolean self-closing.
- Updated existing tests to move from `SelfClosing` => `TagMode`.
- Added `TagStructure` related tests to the set of tests that we currently have for `TagHelperBlockRewriter` and `TagHelperParseTreeRewriter`.

#450
2015-08-13 16:18:06 -07:00
src Add ability to write start tag only `TagHelper` elements. 2015-08-13 16:18:06 -07:00
test Add ability to write start tag only `TagHelper` elements. 2015-08-13 16:18:06 -07:00
.gitattributes
.gitignore
.travis.yml Fix Travis-CI. 2015-06-29 17:17:13 -07:00
CONTRIBUTING.md Update Home master -> Home dev 2015-05-12 11:49:45 -07:00
LICENSE.txt Update LICENSE.txt and license header on files. 2015-05-01 13:58:52 -07:00
NuGet.Config
README.md Normalize README.md build status badges. 2015-04-06 11:55:11 -07:00
Razor.sln Transition Razor test comparers to new project. 2015-07-28 10:38:09 -07:00
appveyor.yml Update .travis.yml and appveyor.yml to build quietly. 2015-04-07 16:16:19 -07:00
build.cmd Enable pinning build script 2015-08-12 05:29:04 -07:00
build.sh Change hardcoded `bash` shebang to `env` 2015-06-23 11:03:41 -07:00
global.json Update global.json, sources=>projects 2015-04-02 09:20:25 -07:00
makefile.shade

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 5. You can find samples, documentation and getting started instructions for ASP.NET 5 at the Home repo.