Durandal, RequireJS, KnockoutJSknock-out de vue fallback
J'ai un générique et une vue spécifique client dans mon projet.
│ faq.html
│ welcome.html
│ shell.html
│
├───Client1
│ faq.html
│
├───Client2
│ faq.html
│ welcome.html
Je souhaite afficher la vue spécifique au client si elle existe ou bien afficher la vue par défaut.
Quelque chose comme ça.
<div>
<div data-bind="compose: { view:'views/Client1/faq.html', fallbackView: 'view/faq.html' }"></div>
</div>