MEH-Design / frix

A CMS based on atomic design principles.
MIT License
2 stars 1 forks source link

API - getOpt #51

Closed MiniXC closed 8 years ago

MiniXC commented 8 years ago

getOpt

Returns the parsed frix.conf.js file.

root

The root path for all other files.

key

The location of the key file.

style

The location of the CSS file.

prefix

The location of the file containing parsing prefixes.

structure

Lists the different folders for different components.

content

Lists the folder for the content.

attributes

Sets how frix-specific attributes are named.

example

let optData = {
  root: 'test/files',
  key: 'key.json',
  style: 'main.css',
  prefix: 'prefix.js',
  structure: {
    folders: {
      organism: 'templates/organisms',
      molecule: 'templates/molecules',
      atom: 'templates/atoms'
    },
    pages: 'templates/pages'
  },
  content: 'content',
  attributes: {
    name: 'name',
    type: 'type',
    content: 'content'
  }
};
MiniXC commented 8 years ago

Was done in 7735e752f8de97fa29400e115ab50d64d3eeb081.