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

Tag Helpers: add code generation for ModelExpression instances #1241

Closed
dougbu opened this issue Oct 6, 2014 · 2 comments
Closed

Tag Helpers: add code generation for ModelExpression instances #1241

dougbu opened this issue Oct 6, 2014 · 2 comments
Assignees
Labels
Milestone

Comments

@dougbu
Copy link
Contributor

dougbu commented Oct 6, 2014

a tag helper such as

  <input type="text" for="Property"/>

should result in code similar to

  inputHelper.For = new ModelExpression(model => model.Property)

This work item does not include special-casing a leading @ in the expression. That will be a separate, later (post-Beta?) work item.

@dougbu dougbu added this to the 6.0.0-beta1 milestone Oct 6, 2014
@dougbu
Copy link
Contributor Author

dougbu commented Oct 6, 2014

#1253 covers the separate work item mentioned above

NTaylorMullen pushed a commit that referenced this issue Oct 8, 2014
- Sealed the ModelExpression.
- We use the stringified version of the ModelExpression type name to detect ModelExpression properties on TagHelpers. This is so the MvcRazorHost can work in tooling and in runtime.
- Created a GeneratedTagHelperAttributeContext to represent the specific stringified versions of the ModelExpression assets.
- Created an MvcTagHelperAttributeValueCodeRenderer to modify rendering of ModelExpression properties.

#1241
NTaylorMullen pushed a commit that referenced this issue Oct 8, 2014
- Exposed internals from Mvc.Razor.Host to Mvc.Razor.Test so it can use the MvcRazorHost override that takes the IFileSystem.
- Added end-to-end code generation tests for TagHelpers with ModelExpression properties.

#1241
NTaylorMullen pushed a commit that referenced this issue Oct 8, 2014
- Sealed the ModelExpression.
- We use the stringified version of the ModelExpression type name to detect ModelExpression properties on TagHelpers. This is so the MvcRazorHost can work in tooling and in runtime.
- Created a GeneratedTagHelperAttributeContext to represent the specific stringified versions of the ModelExpression assets.
- Created an MvcTagHelperAttributeValueCodeRenderer to modify rendering of ModelExpression properties.

#1241
NTaylorMullen pushed a commit that referenced this issue Oct 8, 2014
- Exposed internals from Mvc.Razor.Host to Mvc.Razor.Test so it can use the MvcRazorHost override that takes the IFileSystem.
- Added end-to-end code generation tests for TagHelpers with ModelExpression properties.

#1241
NTaylorMullen pushed a commit that referenced this issue Oct 8, 2014
- Sealed the ModelExpression.
- We use the stringified version of the ModelExpression type name to detect ModelExpression properties on TagHelpers. This is so the MvcRazorHost can work in tooling and in runtime.
- Created a GeneratedTagHelperAttributeContext to represent the specific stringified versions of the ModelExpression assets.
- Created an MvcTagHelperAttributeValueCodeRenderer to modify rendering of ModelExpression properties.

#1241
NTaylorMullen pushed a commit that referenced this issue Oct 8, 2014
- Exposed internals from Mvc.Razor.Host to Mvc.Razor.Test so it can use the MvcRazorHost override that takes the IFileSystem.
- Added end-to-end code generation tests for TagHelpers with ModelExpression properties.

#1241
NTaylorMullen pushed a commit that referenced this issue Oct 8, 2014
- Sealed the ModelExpression.
- We use the stringified version of the ModelExpression type name to detect ModelExpression properties on TagHelpers. This is so the MvcRazorHost can work in tooling and in runtime.
- Created a GeneratedTagHelperAttributeContext to represent the specific stringified versions of the ModelExpression assets.
- Created an MvcTagHelperAttributeValueCodeRenderer to modify rendering of ModelExpression properties.

#1241
NTaylorMullen pushed a commit that referenced this issue Oct 8, 2014
- Exposed internals from Mvc.Razor.Host to Mvc.Razor.Test so it can use the MvcRazorHost override that takes the IFileSystem.
- Added end-to-end code generation tests for TagHelpers with ModelExpression properties.

#1241
NTaylorMullen pushed a commit that referenced this issue Oct 9, 2014
- Sealed the ModelExpression.
- We use the stringified version of the ModelExpression type name to detect ModelExpression properties on TagHelpers. This is so the MvcRazorHost can work in tooling and in runtime.
- Created a GeneratedTagHelperAttributeContext to represent the specific stringified versions of the ModelExpression assets.
- Created an MvcTagHelperAttributeValueCodeRenderer to modify rendering of ModelExpression properties.

#1241
NTaylorMullen pushed a commit that referenced this issue Oct 9, 2014
- Exposed internals from Mvc.Razor.Host to Mvc.Razor.Test so it can use the MvcRazorHost override that takes the IFileSystem.
- Added end-to-end code generation tests for TagHelpers with ModelExpression properties.

#1241
NTaylorMullen pushed a commit that referenced this issue Oct 10, 2014
- Sealed the ModelExpression.
- We use the stringified version of the ModelExpression type name to detect ModelExpression properties on TagHelpers. This is so the MvcRazorHost can work in tooling and in runtime.
- Created a GeneratedTagHelperAttributeContext to represent the specific stringified versions of the ModelExpression assets.
- Created an MvcTagHelperAttributeValueCodeRenderer to modify rendering of ModelExpression properties.

#1241
NTaylorMullen pushed a commit that referenced this issue Oct 10, 2014
- Exposed internals from Mvc.Razor.Host to Mvc.Razor.Test so it can use the MvcRazorHost override that takes the IFileSystem.
- Added end-to-end code generation tests for TagHelpers with ModelExpression properties.

#1241
@NTaylorMullen
Copy link

2005c3c
75a77e2

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

No branches or pull requests

2 participants