2.0.2 • Published 2 years ago

@kps3/hbs-template-builder v2.0.2

Weekly downloads
22
License
MIT
Repository
-
Last release
2 years 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

2 years ago

1.0.7

4 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago