Socket
Socket
Sign inDemoInstall

handlebars-layouts

Package Overview
Dependencies
0
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
2Next

3.1.4

Diff

shannonmoeller
published 3.1.3 •

Changelog

Source

3.1.3

Bugfixes:

  • Added support for objects with a null prototype. (#27, #28)
shannonmoeller
published 3.1.2 •

Changelog

Source

3.1.2

Bugfixes:

  • Handlebars wasn't playing nice with Object.create, so all cases have been removed in favor of property copying.
  • Now using handlebars.createFrame with options.data and using the result with partials.
shannonmoeller
published 3.1.1 •

Changelog

Source

3.1.1

Bugfixes:

  • Corrected handling of partial context when the native syntax is used inside of an embed. (#25)
shannonmoeller
published 3.1.0 •

Changelog

Source

3.1.0

Features:

  • The extend and embed helpers now support a custom context to match the signature and features of the default partials syntax: {{> partialName contextObject foo=bar }}. (#21)
shannonmoeller
published 3.0.0 •

Changelog

Source

3.0.0

Breaking Changes:

  • The @content value has been removed in favor of the updated content helper.

Features:

  • The content helper may now be used as a subexpression to check for the existance of block content. (#22)
Before: {{#if @content.foo}}    {{{block "foo"}}} {{/if}}
After:  {{#if (content "foo")}} {{{block "foo"}}} {{/if}}
shannonmoeller
published 2.0.2 •

Changelog

Source

2.0.2

Bugfixes:

  • Fixed a regression in the order of content rendering. (#18)
shannonmoeller
published 2.0.1 •

Changelog

Source

2.0.1

Bugfixes:

  • Added files missing from a bad commit.
shannonmoeller
published 2.0.0 •

Changelog

Source

2.0.0

Breaking changes:

  • The handlebarsLayouts(handlebars) function no longer automatically registers helpers. Instead it returns an object which is compatible with the Handlebars.registerHelper method. If you want the helpers to automatically be registered, use handlebarsLayouts.register(handlebars) instead. The return value of both functions has been changed to be the object of helpers rather than the passed-in handlebars instance. (#15)

Features:

  • Exposed @content variable to facilitate conditional blocks. (#16)
shannonmoeller
published 1.1.0 •

Changelog

Source

1.1.0

Features:

  • Arbitrary attributes may now be given to extend and embed and are added to the partial's data context.
2Next
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc