Closed haacked closed 2 years ago
Thanks for the PR! Would love for this to be added to the other tag helpers you mention too, with the naming you suggest. Bonus points if you update the sample/site page with an example of this in use 😁
No problem!
Ok, this is ready for review.
The Display Template HTML helpers support specifying a template name that is used to override the default display/editor template for a given type.
This adds support for that to the
display
andeditor
tag helpers.This PR only adds this to
DisplayTagHelper
andEditorTagHelper
. If you like this change, I can also add support forDisplayForTagHelper
andEditorForTagHelper
. The only question there is what should the attribute name be for those tag helpers?template-name
like it is forDisplayTagHelper
orasp-template-name
? I'm assuming the latter to be consistent.