ig-templates

0.3.0 • Public • Published

ig-templates CircleCI npm

Work in progress

Collection of Handlebars partials, layouts and helpers for use in IG pages.

Usage example

import Handlebars from 'handlebars';
import { autoRegister } from 'ig-templates';

// register all our partials and helpers
autoRegister(Handlebars);

After registering as above, you can use your Handlebars instance to compile templates that make use of ig-templates' layouts and partials.

Debugging

The Handlebars helpers use the debug module for logging with the prefix ig-templates. So if you want to see logging, set DEBUG=ig-templates in your environment.

Docs

Developing in this repo

Set up: clone and run yarn && bower install. Developing: run trip develop Publishing: on master, commit all changes then run npm version patch && git push && git push --tags (switch patch for minor or major as appropriate)

Readme

Keywords

none

Package Sidebar

Install

npm i ig-templates

Weekly Downloads

13

Version

0.3.0

License

none

Last publish

Collaborators

  • callumlocke