Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support templated Razor delegates #67

Merged
merged 5 commits into from
Dec 13, 2024

Conversation

DamianEdwards
Copy link
Owner

@DamianEdwards DamianEdwards commented Dec 13, 2024

This adds actual support for templated Razor delegates. What I was referring to as templated Razor delegates before were actually templated Razor methods which are different. Razor Slices now supports both forms.

Note that templated Razor delegates that return tasks that look like they come from an async/await method are explicitly not supported and will cause a runtime exception.

Fixes #65

@DamianEdwards DamianEdwards merged commit d5e7d7a into main Dec 13, 2024
1 check passed
@DamianEdwards DamianEdwards deleted the SupportTemplatedRazorDelegates branch December 13, 2024 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Combining templated razor delegates and partials
1 participant