Routing

No controllers are needed to configure your routes, just define a template and that's it!

app.route([
  { path: '/', template: '/templates/home.html' },
  { path: '/routing', template: '/templates/routing.html' },
  { path: '/databinding', template: '/templates/databinding.html' },
  { path: '/templates', template: '/templates/templates.html' }
]);

The <view> tag

Add the <view> tag to render your views.

<body>
  <ul class="my-nav">
    <li><a href="/home">Home</a></li>
  </ul>
  <div class="container">
    <view></view>
  </div>
</body>