ruth

A friendly router written for Web Components


Keywords
router, routing, web-components, webcomponents
License
MIT-feh
Install
bower install ruth

Documentation

Ruth

A friendly router written for Web Components

Basic usage

<template is="ruth-redirect" to-path="/my-old-path" from-path="/my-new-path"></template>

<template is="ruth-route" path="my-courses">
  <!-- You can use HTML imports or whatever else suits you. Ruth won't care or judge you... -->
  <link rel="import" href="../my-component.html">
  <my-component></my-component>
</template>

<!-- ÏFallback template, when no routes are matched at this level -->
<template is="ruth" default>
  <link rel="import" href="../page-404.html">
  <page-404></page-404>
</template>