Skip to content
/ stat-e Public

Static Electricity! Static content generator with Node.js, grunt and Mustache templating.

License

Notifications You must be signed in to change notification settings

siahlah/stat-e

Repository files navigation

Static Electricity!

Warning!!! This is currently at "someone's pet project and that someone is some dude with an arch linux laptop with no compsci training and is probably a liberal arts major" phase. If you're any good at all at programming the code within will make you think "some people should not be allowed to install node.js".

Getting started:

  1. Configure directories in config.json
{
	"source_dir": "drafts",
	"template_dir": "templates",
	"public_dir": "public"
}
  1. Write some markdown in your source_dir

  2. Write a Mustache template in your template_dir

  3. stat-e will bake all files in source_dir with template found in template_dir

Here are some rules:

  1. template_dir needs to have at least index.mustache
  2. If there is a more specific template, it will use it:
    • index.mustache in same directory takes precendence if your file is in a subdirectory
    • .mustache bearing exact same file name as your source takes precendence over index.mustache

Here are some features:

  1. File name of source file be file name of output file:
    test-this-stuff.md => test-this.stuff.html

About

Static Electricity! Static content generator with Node.js, grunt and Mustache templating.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published