1.3.0 • Published 6 years ago

pagine v1.3.0

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

Pagine is a light-weight (~ 2.5 Kb gzipped) system to create multipage, content driven SPAs. Your content is loaded from markdown files and displayed on defined application routes. Pagine is great for documentation, blogs, and other text heavy websites.

Features

  • Page generation from markdown files
  • No server logic - 100% client side
  • Performant template caching
  • Built-in hash router

Installation

via npm

npm install pagine --save

via yarn

yarn add pagine

via download

<script src="path/to/pagine.min.js"></script>

Usage

JavaScript

import Pagine from 'pagine';

new Pagine({
  view: '#view',
  routes: [
    {
      path: '/home',
      md: './markdown/home.md',
      layout: 'main'
    }
  ]
})

HTML

<div id="view"></div>
<script type="text/html" id="main">
  <%= content %>
</script>

Routing

Pagine is currently setup to use hash routes (i.e. #/, #/docs).

Contributing

You can request a new feature by submitting an issue. If you would like to implement a new feature feel free to issue a Pull Request.

License

Pagine is protected under the MIT License

1.3.0

6 years ago

1.2.0

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago