require-patternlab
v0.0.1
Published
Browserify plugin to require patternlab templates using pattern naming
Downloads
3
Maintainers
Readme
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