3.2.0 • Published 5 years ago

cmx2 v3.2.0

Weekly downloads
3
License
MIT
Repository
bitbucket
Last release
5 years ago

cmx

pronounced camux

Prerequisites

Before using cmx you need

  • A src folder containg the files that you want to host
  • A views folder containing a pug template (called page.pug)
  • A .cmx.js file. Here's an example that renders markdown using marked
        module.exports = {
            "build": [{
                "match": [/\.html?$/i]
            }, {
                "match": [/\.md$/i, /\.markdown$/i],
                "transformers": [
                    // Any jstransformer module
                    {"name": "markdown-it"}
                ]
            }]
        }

Usage

Run cmx in the site folder`

Useful hints

  • Remember to put a template into the front matter
  • You can use YAML front matter to pass data to the template (e.g. Meta tags, the page title)
    ---
    title: Page title
    template: page
    ---
    content content content
  • Files that are not copiled are copied verbatim to the dist directory
3.2.0

5 years ago

3.1.5

5 years ago

3.1.4

5 years ago

3.1.3

5 years ago

3.1.2

5 years ago

3.1.1

5 years ago

3.1.0

5 years ago

3.0.0

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago