Skip to content
file-based CMS for Maki
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
views
.gitignore
LICENSE
README.md
index.js
package.json

README.md

maki-cms-local

file-based CMS for Maki

Quick Start

var Maki = require('maki');
var app = new Maki();

var CMS = require('maki-cms-local');
var cms = new CMS({
  base: '/docs', // top-level URL base. becomes: yourserver.com/docs
  path: 'docs/', // local directory to serve from.  Markdown-formatted.
  view: 'docs/'  // absolute path to the Jade view to utilize.
});

app.use(cms);
app.start();

All config values are optional, and default to sane values:

{
  base: '/pages',
  path: process.env.PWD + '/pages', // looks for `./pages` in your app folder
  view: __dirname + '/../views/page.jade' // looks for `./views/page.jade` in your app folder
}
You can’t perform that action at this time.