0.0.1 • Published 8 years ago
require-patternlab v0.0.1
require-patternlab
require-patternlab
is a Browserify plugin to require Pattern Lab templates using pattern naming.
Installation
With npm
as a local development dependency:
npm install --save-dev require-patternlab
Usage
In your module
var template = require('pattern:atoms-title');
Options
name | type | description | default |
---|---|---|---|
path | string | search pattern path | Get value of browserify.opts.paths |
resolutionPrefix | string | prefix to identify pattern requirement | pattern: |
templateExtension | string | template engine extension | twig |
Register with the command-line
browserify test.js -p [ require-patternlab -path ./source/_patterns ] > test-bundle.js
0.0.1
8 years ago