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

Updated view location convention order #634

Merged

Conversation

thecodejunkie
Copy link
Member

The conventions will now use the most strict convention first and
work its way back to the less strict one. The new order is

  • views/modulepath/viewname
  • views/modulename/viewname
  • modulepath/viewname
  • modulename/viewname
  • views/viewname
  • viewname

Fixes #632
This is a breaking change!

The conventions will now use the most strict convention first and
work its way back to the less strict one. The new order is

  - views/modulepath/viewname
  - views/modulename/viewname
  - modulepath/viewname
  - modulename/viewname
  - views/viewname
  - viewname

This is a breaking change!
They will not return an empty string if the modulepath is null or
empty. When a convention returns an empty string then the convention
is ignored by the DefaultViewResolver and the next convention is
invoked instead
grumpydev added a commit that referenced this pull request Jun 21, 2012
…rder-632

Updated view location convention order
@grumpydev grumpydev merged commit 5bd57a1 into NancyFx:master Jun 21, 2012
@thecodejunkie thecodejunkie deleted the viewlocationconventionsreorder-632 branch February 17, 2016 08:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reorder the view location conventions
2 participants