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 views stored in Areas #88

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

zabeda
Copy link

@zabeda zabeda commented Sep 23, 2014

We are using Areas for a project and wanted to be able to have the Emails folder stored in the Area instead of off the root.

This change lets you add the name of an Area to the Email object using either a new constructor or by using an AreaName property. If populated, the EmailViewRender puts the AreaName in the DataTokens of the RouteData object. Once there, the folder ~/[AreaName]Views/Emails/ is included in the search for the view named in the Email object.

@rickdgray rickdgray self-requested a review March 31, 2023 20:40
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.

1 participant