How can I load my Aurelia app from an index.html which is not located in the same folder as the rest of the application?
<p>How can I load my app from an <code>index.html</code> which is not located in the same folder as the rest of the application?</p>

<p>Iâm currently using <code>jspm</code> (which Iâm new to). Iâm trying to integrate <code>Aurelia</code> with <code>web2py</code> (Python web framework). </p>

<p>My <code>index.html</code> in accessible via</p>

<pre><code>http://websiteaddress.com/myapp/default/index.html
</code></pre>

<p>and may later be accessible via</p>

<pre><code>http://websiteaddress.com/myapp/index.html
</code></pre>

<p>but the code of my <code>Aurelia</code> app is accessible from</p>

<pre><code>http://websiteaddress.com/myapp/static/aurelia_app/
</code></pre>

<p>On the disk the <code>index.html</code> file is at </p>

<pre><code>/web2py/applications/myapp/views/default/index.html
</code></pre>

<p>and the <code>Aurelia</code> app folder is at</p>

<pre><code>/web2py/applications/myapp/static/aurelia_app
</code></pre>

<p>You need to use the <a href="http://web2py.com/books/default/chapter/29/04/the-core?search=router#Pattern-based-system" rel="nofollow">web2py pattern router</a>, something like this in the router definition should work:</p>

<pre><code>routes_in = (
  ('/appname/default/index', '/appname/static/aurelia_app/index.html'),
  ('/appname/default/jspm_packages/$anything', '/appname/static/aurelia_app/jspm_packages/$anything'),
)
</code></pre>

javascript python web2py aurelia jspm