Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.
/ salte-pages Public archive

WIP: Simple Page Management

License

Notifications You must be signed in to change notification settings

salte-io/salte-pages

Repository files navigation

Salte Pages

NPM Version NPM Downloads Travis Coveralls

semantic-release Greenkeeper badge

Simple Page Management

Supported Browsers

salte-pages guarantees support for the following browsers:

  • Chrome (last 2 versions)
  • Safari (last 2 versions)
  • Opera (last 2 versions)
  • Edge (last 2 versions)
  • IE 11

Edge and Internet Explorer 11 require the web components polyfills.

Install

$ npm install @salte-io/salte-pages

Then add a <script> to your index.html:

<script src="/node_modules/@salte-io/salte-pages/dist/salte-pages.js"></script>

Or require('@salte-io/salte-pages') from your code.

Usage

Here's a simplified example of how it can be used!

<salte-pages selected="dashboard" fallback="404">
    <my-dashboard page="dashboard"></my-dashboard>
    <div page="404">Native Elements are also supported!</div>
</salte-pages>

Also a Live Demo!