title: HotTowel Durandal Inject different views based on the user
body: <p>In the <code>shell.html</code> for HotTowel template we have:</p>
  
  <pre><code>    &lt;!--ko compose: {model: router.activeItem, 
          afterCompose: router.afterCompose, 
          transition: 'entrance'} --&gt;
      &lt;!--/ko--&gt;
  </code></pre>
  
  <p>which will automatically insert the proper view by convention. I am trying to inject different views based on the user's role in a HotTowel/Durandal App. For example,
  I have two Views,</p>
  
  <ol>
  <li>productEditor_Admin.html</li>
  <li>productEditor_Superviser.html
  (instead of these two views, I used to have only productEditor.html, by convention everything worked)</li>
  </ol>
  
  <p>and only a single ViewModel:</p>
  
  <ol>
  <li>productEditor.js</li>
  </ol>
  
  <p>Now, I want to have a function in <code>productEditor.js</code> that will let me decide which view to insert based on user's role. I see in the <a href="http://durandaljs.com/documentation/Composition/" rel="nofollow">Composition documentation</a>, we can do <code>function strategy(settings) : promise</code> but I am not sure what's the best way to accomplish this in the HotTowel template. Anyone have already tried and got an answer for that? </p>