Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

re-ordered default view location and added new module path conventions #771

Merged
merged 2 commits into from Oct 4, 2012

Conversation

phillip-haydon
Copy link
Member

#766

Written the unit tests and implemented the view locations as per issue 766

(viewName, model, viewLocationContext) =>{
return string.IsNullOrEmpty(viewLocationContext.ModulePath) ? string.Empty : string.Concat("views/", viewLocationContext.ModulePath.TrimStart(new[] {'/'}), "/", viewName);
if (string.IsNullOrEmpty(viewLocationContext.ModulePath))
return string.Empty;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Single-line if blocks should be wrapped in curly braces

@phillip-haydon
Copy link
Member Author

Fixed :)

thecodejunkie added a commit that referenced this pull request Oct 4, 2012
re-ordered default view location and added new module path conventions
@thecodejunkie thecodejunkie merged commit 9509e4d into NancyFx:master Oct 4, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants