yuzu-definition-hbs-helpers

1.1.18 • Public • Published

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 }}}

Readme

Keywords

none

Package Sidebar

Install

npm i yuzu-definition-hbs-helpers

Weekly Downloads

12

Version

1.1.18

License

MIT

Unpacked Size

20.9 kB

Total Files

15

Last publish

Collaborators

  • hifiagency
  • lfarrowhifi