2.3.0 • Published 4 months ago

@janiscommerce/handlebars v2.3.0

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months ago

Handlebars

Build Status Coverage Status npm version

For manage Handlebars with custom helpers

Installation

npm install @janiscommerce/handlebars

📢 API

Description

This package exports Handlebars with many helpers already registered, this will help us write faster and with more functionalities

Usage

const { Handlebars } = require('@janiscommerce/handlebars');

Examples

const template = '<html><body><h1>Example</h1></body></html>';

const templateCompiled = Handlebars.compile(template, 'strict');

const values = {
	...
}

templateCompiled(values)

📢 Pre Compile the template values

📢 Post Compile the compiled template

📢 Helpers

This package extends built-in helpers. See custom helpers for more docs and usage.

2.3.0

4 months ago

2.2.0

5 months ago

2.1.0

1 year ago

2.0.3

1 year ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.1.0

2 years ago

1.0.1

3 years ago

1.0.0

3 years ago