Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Tag Helpers: Map PascalCase type & property names to HTML element & attribute dashed equivalents #240

Closed
DamianEdwards opened this issue Nov 24, 2014 · 2 comments

Comments

@DamianEdwards
Copy link
Member

By default (convention), Tag Helper type and property names should map to their HTML element attribute equivalents such that pascal-cased names are converted to dashed-names automatically. This can of course be overridden with the HtmlElementName and HtmlAttributeName attributes.

e.g.

"public class MyTagHelper : TagHelper" maps to "<my-tag-helper>"
"public string MyProperty { get; set; }" maps to "my-property='blah'"
@NTaylorMullen
Copy link

Taking this on right now. Tooling is really odd without it.

NTaylorMullen pushed a commit that referenced this issue Dec 23, 2014
- Lower snake cased casing is the HTML convention.

#240
NTaylorMullen pushed a commit that referenced this issue Dec 23, 2014
- Also added additional tests to validate new lower snake casing.

#240
NTaylorMullen pushed a commit that referenced this issue Dec 29, 2014
- Lower snake cased casing is the HTML convention.

#240
NTaylorMullen pushed a commit that referenced this issue Dec 29, 2014
- Also added additional tests to validate new lower snake casing.

#240
NTaylorMullen pushed a commit to aspnet/Mvc that referenced this issue Dec 29, 2014
- Updated tests to account for new casing
NTaylorMullen pushed a commit that referenced this issue Jan 14, 2015
- Lower kebab casing is the HTML convention.

#240
NTaylorMullen pushed a commit that referenced this issue Jan 14, 2015
- Also added additional tests to validate new lower kebab casing.

#240
NTaylorMullen pushed a commit to aspnet/Mvc that referenced this issue Jan 14, 2015
- Updated tests to account for new casing.
NTaylorMullen pushed a commit that referenced this issue Jan 14, 2015
- Lower kebab casing is the HTML convention.

#240
NTaylorMullen pushed a commit that referenced this issue Jan 14, 2015
- Also added additional tests to validate new lower kebab casing.

#240
@NTaylorMullen
Copy link

2ad828f
8c47f6a

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants