Socket
Book a DemoInstallSign in
Socket

atomicms

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atomicms

A CMS based on atomic design principles.

0.1.6
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

atomicms

npm version Build Status Dependency Status Coverage Status Code Climate License

CMS module inspired by atomic design

Example

const express = require('express');
let app = express();

const atomicms = require('atomicms');
let cms = new atomicms();

app.get('/', cms.requestHandler);

API

Atomicms takes an opts object specifing the paths of key.json, templates, organisms and content.

Default opts object:

{
  key: 'key.json',
  content: 'content',
  template: 'templates',
  organism: 'organisms'
}

key.json

key.json is where it comes all together. One template and content are assigned to one url respectively.

Example:

{
  '/index': {
    'template': 'index.html',
    'content': 'index.json'
  }
}

Organisms

Organisms can reside in templates and are referenced using markup-js syntax.

Example:

template [index.html]

<body>
    {{oHeader as header}}
</body>

organism [oHeader.html]

<h1>{{title}}</h1>
<img src={{img}}>
<p><strong>{{content}}</strong></p>

content [index.json]

{
  'header': {
    'title': ...,
    'img': ...,
    'content': ...
  }
}

Installation

npm install atomicms

Keywords

atomic

FAQs

Package last updated on 29 May 2016

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.