section-html

0.1.1 • Public • Published

section-html

This is a plugin for Section, a static site generator, which processes html underscore templates.

Getting Started

This plugin requires the ~0.1.0 version of the grunt-section plugin.

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. You may install this plugin with this command:

npm install section-html --save

Options

This plugin introduces a number of new options that can be set on the grunt-section configuration object inside the Gruntfile.js file. Here’s a simple example of how that file might look like:

grunt.initConfig({
  section: {
    target: {
      options: {
        template: 'path/to/template.html'
      },
      src: 'input/directory/',
      dest: 'output/directory/'
    },
  },
});

template (required)

type: String default: undefined

The path to an underscore template file must be provided.

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Release History

v0.1.0

Initial version

Package Sidebar

Install

npm i section-html

Weekly Downloads

2

Version

0.1.1

License

none

Last publish

Collaborators

  • iclanzan