Skip to content
A friendly router written for Web Components
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
.gitignore
LICENSE
README.md
bower.json
package.json

README.md

Ruth

A friendly router written for Web Components

npm Bower

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>
You can’t perform that action at this time.