- #89 remainder - support adding attributes (that aren't otherwise bound) to a tag helper dictionary - use two `TagHelperAttributeDescriptor`s for dictionary and indexer - most exising descriptor properties have two meanings depending on new `IsIndexer` - add `TagHelperAttributeDescriptor.IsNameMatch()` - create no `TagHelperAttributeDescriptor`s if property name or `HtmlAttributeNameAttribute` is invalid - avoid corner case misfeatures where invalidity removes just one descriptor - extend handling of invalid attribute names to include `[HtmlAttributeName]` - handle prefix matches in `TagHelperBlockRewriter` - add parse error when resolved dictionary key is `string.Empty` - generate code for indexer property assignments - add code generation for runtime error if using indexer when property is `null` - use new `GeneratedTagHelperContext.FormatInvalidIndexerAssignmentMethodName` for message - code generation now handles attributes in source order; thus above errors occur only when expected if dictionary is also initialized in the Razor source - surprisingly generation order change did not break existing tests! nits: - improve `TagHelperDescriptorFactory_InvalidBoundAttributeName` wording - rename resource to `TagHelperDescriptorFactory_InvalidAttributeNameOrPrefixStart` - correct order of arguments to `FormatTagHelperDescriptorFactory_InvalidBoundAttributeName` - correct `TagHelperBlockRewriter_TagHelperAttributeListMustBeWellFormed` resource - correct `TagHelperDescriptorFactoryTest` test names - remove a few unnecessary `ToArray()` calls - update `TagHelperAttributeDescriptorComparer` comments |
||
|---|---|---|
| src | ||
| test | ||
| .gitattributes | ||
| .gitignore | ||
| .travis.yml | ||
| CONTRIBUTING.md | ||
| LICENSE.txt | ||
| NuGet.Config | ||
| README.md | ||
| Razor.sln | ||
| appveyor.yml | ||
| build.cmd | ||
| build.sh | ||
| global.json | ||
| makefile.shade | ||
README.md
Razor
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.