Go to file
N. Taylor Mullen b25bf01158 Add TagHelper support for unbound data- attributes.
- Involved updating the HtmlMarkupParser to properly separate data- attributes. Prior to this change `data-foo="abc @DateTime.Now def"` would involve 1 Span for `data-foo="abc` 1 Span for `@DateTime.Now` and 1 Span for `def"`. This was very unique behavior from an attribute standpoint (as far as Razor is concerned) and made it difficult for the TagHelper rewriting system to rewrite attributes. With this change it gets broken out as follows: `|data-foo="|abc| @DateTime.Now| def|"|`.
- Added unit tests to validate the various ways you can write unbound data- attributes.
- Updated the BasicTagHelpers codegeneration test to intermix some unbound data- attributes.

#342
2015-05-18 22:43:03 -07:00
src Add TagHelper support for unbound data- attributes. 2015-05-18 22:43:03 -07:00
test Add TagHelper support for unbound data- attributes. 2015-05-18 22:43:03 -07:00
.gitattributes
.gitignore
.travis.yml Fix travis. 2015-05-13 16:30:17 -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
Razor.sln
appveyor.yml Update .travis.yml and appveyor.yml to build quietly. 2015-04-07 16:16:19 -07:00
build.cmd
build.sh
global.json
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.