Skip to content

Collection of handlebars helpers to work with blocking

License

Notifications You must be signed in to change notification settings

hifi-phil/block-hbs-helpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Block Handlebars Helpers

A collection of Handlebars helpers to comilment Blocking, a way of implementing serverside headerless website production.

ifCond

Adds conditional if statements to Handlebars

{{#ifCond type '===' 2}}

{{/if}}

modPartial

A new partial that renders a supplied partial using the data and injects this data with a new modifier property. Can be used to modify a block from the markup file instead of the data which defines how it will look in the code.

{{{ modPartial 'parPageHeaderSearch' pageHeaderSearch 'page-header-search--modal' }}}

toLowerCase

Converts any upper case characters to lowercase

{{{ toLowerCase 'UPPER' }}}

toString

Used to stringify json object

{{{ toString data }}}

About

Collection of handlebars helpers to work with blocking

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published