Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bramstein/markup
https://github.com/bramstein/markup
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bramstein/markup
- Owner: bramstein
- Created: 2012-04-30T06:04:05.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-05-19T08:22:44.000Z (over 11 years ago)
- Last Synced: 2024-04-14T09:56:21.407Z (7 months ago)
- Language: JavaScript
- Size: 4.46 MB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Markup: a static site generator
===============================
A source file is a markdown file, which can be accessed in the template by {{article}}. Global meta-data goes into site.json.Templates are mustache files, with the same name as a file or directory in the source directory. Templates have access to global and source meta-data as well as the article data (if any.) Creating reusable templates is possible through the use of partials, which go into the partials directory. These are template fragments.
All files in the `src` directory that are not markdown files are copied verbatim to the output directory. Files other than templates in either the partials or template directory are ignored.
Template fallback works as follows. Given an input file:
some/dir/content.md
The following templates are tried in order:
some/dir/content.html
some/dir.html
some.htmlIf there is no fallback at the root, the source file is ignored.