@ctek/ruth

0.0.1 • Public • Published

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>

Readme

Keywords

none

Package Sidebar

Install

npm i @ctek/ruth

Weekly Downloads

0

Version

0.0.1

License

LICENSE

Last publish

Collaborators

  • iainreid948
  • ctekmasteradmin