2.0.2 • Published 7 months ago

@kps3/hbs-template-builder v2.0.2

Weekly downloads
22
License
MIT
Repository
-
Last release
7 months ago

Template Builder

Usage

Folder Structure

.
├── ...
├── templates
│   ├── components               # Components/partials used within the templates
│   |   ├── header.hbs
│   ├── layouts                  # Layouts (must use `{{{yield}}}` to output template body)
│   |   ├── default.hbs
│   └── index.hbs                # Templates
└── ...

Code

const templateCompiler = require('@kps3/hbs-template-builder');

templateBuilder({
  path: './templates',         // relative path to template directory
  layout: 'default.hbs',       // layout file name
  output: './dist',            // relative path to output build directory
  watch: false,                // watch files for changes
  buildComponents: false       // build component files like templates (useful for testing components)
});

CLI

$ hbs-template-builder --path=./templates --layout=default.hbs --output=./dist --buildComponents --watch
2.0.2

7 months ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

4 years ago

1.0.4

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago