Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cm-engine

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cm-engine

Content management redefined.

  • 0.2.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

CM-Engine

The Content Management Engine for Enginemill.

Installation

CM-Engine is designed to be installed by including it in the package.json dependencies list for your web project. Follow the npm documentation for package.json if you don't already know how to do that.

Once you have it listed in the package.json for your project, just run

npm install

from the root of your project.

Usage

Load CM-Engine into a Node.js module by requiring it.

    var CME = require('cm-engine');

Configure and create a handler function and then simply pass it to one of your Enginemill endpoint definitions.

var cmHandler = CME.createHandler({
  template_path: '/path/to/templates'
, content_path: '/path/to/content'
, createContext: function () {
		return {
				env: 'local'
			, cdn: 'http://cdn.example.com'
		};
  }
});

EM.endpoint({
		name: 'Blog'
	, route: '/blog/*'
	, methods: 'HEAD GET'
	, handler: cmHandler
});

Copyright: (c) 2012 by The Fireworks Project (http://www.fireworksproject.com)

Unless otherwise indicated, all source code is licensed under the MIT license. See MIT-LICENSE for details.

FAQs

Package last updated on 17 Dec 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc