0.1.2 • Published 10 years ago

grunt-html-include v0.1.2

Weekly downloads
195
License
-
Repository
github
Last release
10 years ago

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'

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago