acid-plugin-static

0.1.2 • Public • Published

acid-plugin-static

acid-plugin-static is a simple plugin for the Acid static site generator to create a static site from a folder of Marko templates. A structure like this:

index.marko
about.marko
contact/index.marko

will produce output like this:

index.html
about.html
contact/index.html

Usage

Add acid-plugin-static to your acid.config.js and include a directory path.

var pluginStatic = require('acid-plugin-static');

module.exports = {
    plugins: [
        pluginStatic({
            templateDir: './src/templates/flats',
            generateListing: true
        })
    ]
};

Options

acid-plugin-static accepts the following options.

  • templateDir (string, required) - Path containing the templates
  • generateListing (boolean, optional) - If no index.marko is provided, generate a simple list of routes to serve as the index. This is useful when using this package to produce static templates that will later be integrated into another system.

Readme

Keywords

none

Package Sidebar

Install

npm i acid-plugin-static

Weekly Downloads

2

Version

0.1.2

License

ISC

Last publish

Collaborators

  • drewschrauf