Durandal, RequireJS, KnockoutJS
I have a generic and a client specific view in my project.
│ faq.html
│ welcome.html
│ shell.html
│
├───Client1
│ faq.html
│
├───Client2
│ faq.html
│ welcome.html
I want to show the client specific view if it exists or else show the default view.
Something like this.
<div>
<div data-bind="compose: { view:'views/Client1/faq.html', fallbackView: 'view/faq.html' }"></div>
</div>