Skip to content

pattern-library/pattern-importer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pattern Importer

A node module for importing HTML patterns following the Pattern Library model.

pattern-importer takes a batch of pre-compiled templates (twig, swig, plain html, etc), with their supporting javascript files, and pre-compiled stylesheets (sass, less, plain css, etc) and converts them to HTML, CSS, and Javascript. It also replaces {{dataPlaceholders}} with default data from the patterns, or your project's data set.

Installation

Install pattern-importer in your project:

`npm install pattern-importer`

Usage

General Usage

  1. Add the pattern-library as a npm dependency:

    npm install pattern-library
    
  2. Require the gulp task in your gulpfile.js (See the complete Gulp task details first)

    var importPatterns = require('pattern-importer').gulpImportPatterns(gulp,options);

  3. Trigger the gulp task

    gulp patterns-import

About

A node module for importing HTML patterns following the Pattern Library model.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •