jampass

0.0.2-edge.2.7 • Public • Published

Jampass

Another one

A static site generator.

Jampass easily helps you funnel data from any headless cms to your templates.

Install

 npm i jampass

Edge

Jampass is still in edge developemt, use it for testing only. Things are bound to change at anytime. If you would like to contribute, email me at sdnziaka@gmail.com.

Example

See a working example of how to implement under the 'test' folder on github.

// filename: jampass.config.js

const Jampass = require('jampass');

// Use any headless CMS, we use contentful here just as an example
const contentful = require('contentful');

Jampass.funnel(async () => {
  const client = contentful.createClient({ ... })
  const entries = await client.getEntries({ ... })

  const result = entries.map(entry => {
    ...
  })

  return result;
})

// Jampass will use default configurations, then, voilá!

Docs

Jampass aims bridge the gap between content making and content publishing. The system helps funnel data to your templates to generate HTML, while providing a modern development environment.

Build your site with the latest browser-ready CSS and JavaScript, along side server side JavaScript to seamlessly generate a fully static site.

Jampass supports, locales, pagination, build time variables along side your template data, site subdirectories, multiple pages generation based on slugs, index generation for search.

...

Template Engine

Jampass comes out of the box with support for handlebars.

With additional support for any template engine consolidate.js supports.

Author

(c) 2021 Simao Nziaka

Install

npm i jampass@0.0.2-edge.2.7

Version

0.0.2-edge.2.7

License

MIT

Unpacked Size

46.4 kB

Total Files

10

Last publish

Collaborators

  • akaizn