ig-templates
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)