Skip to content
This repository has been archived by the owner on Mar 19, 2020. It is now read-only.
/ nodeache Public archive

A static-webpage-generator based on node.js using mustaches, markdown and JSON.

License

Notifications You must be signed in to change notification settings

nunull/nodeache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodeache

A static-webpage-generator based on node.js using mustaches, markdown and JSON.

  • Realtime editing
  • Publishing via FTP

NPM-package: npmjs.org/package/nodeache

Bugs: /nunull/nodeache/issues

Installation

$ sudo npm install -g nodeache

Usage

Building a website:

$ nodeache folder

Rebuilding a website everytime a file or folder has changed:

$ nodeache dev folder

Publishing a website via FTP:

$ nodeache publish folder

Where folder is a folder following the structure given under Folder structure.

Folder structure

folder
|-  (config.json)
|-  content
'-  templates

Content

All content is saved in folder/content.

It is possible to save content as markdown with the file-extensions md or markdown or as JSON with the file-extension json. The resulting block will be named after the filename.

Special cases:

  • Markdown files can be ordered by prepending XX- to the filename. (i.e. 01-Home.md, 02-About.md etc.) XX- will be skipped in the blockname. (i.e. 01-Home.md will be Home)
  • Files placed in a subdirectory will be named according to their path. (i.e. folder/content/pages/01-Home.md will be pages.Home or pages.0)

Templating

All templates are saved in folder/templates. It is possible to create as much subdirectorys as you want. A template consists of a fully functional website except for the content.

Content can be included via the syntax of handlebars.js.

config.json

Example file:

{
    "ignore": ["templates/imgs"],
    "debug": false,
    "parse": {
        "js": "compressed",
        "css": "compressed",
        "sass": "compressed"
    }
}

About

A static-webpage-generator based on node.js using mustaches, markdown and JSON.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published