Skip to content

Support views stored in Areas#88

Open
zabeda wants to merge 2 commits intoandrewdavey:masterfrom
zabeda:master
Open

Support views stored in Areas#88
zabeda wants to merge 2 commits intoandrewdavey:masterfrom
zabeda:master

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