grunt-html-include

0.1.2 • Public • Published

html-include

How to use
  1. @@include('filename')

    Write the content of ./filename.html here.

    If ./filename.html doesn't exist, it will search for it in the directory of /components.

    Besides, the /components/filename.css will be writeen to /css/filename.css. So that,

    you should put your common HTML components and CSS in the directory of /components

  2. @@include('filename', {"title": "HTML Include"})

    This will replace all the @@title@@ in ./filename.html with HTML Include.

  3. @@include('filename', {"left": "@@include('leftContent')", "right": "@@include('rightContent')"})

    Support nesting include.

  4. You could use @@include in the including file.

  5. Configuration

    options: {

    workingDir: 'src',

    componentCSS: 'css/components.css'

    },

    files: {

    'dest': ['src/index.html', 'src/*.html']

    }

    workingDir: the html source directory

    componentCSS: the file of components.css

    files: the files to 'html-include'

Readme

Keywords

none

Package Sidebar

Install

npm i grunt-html-include

Weekly Downloads

1

Version

0.1.2

License

none

Last publish

Collaborators

  • liuda101