This skill enforces logic-less Handlebars patterns to keep templates clean, safe, and maintainable by guiding data preparation and helper usage.
npx playbooks add skill ecelayes/roots-skills --skill handlebars
{{#if}} or {{#each}} blocks, consider refactoring the data structure or creating a custom helper.{{ value }} is safe and escapes HTML characters.{{{ value }}} (triple-stash) ONLY for trusted HTML strings (e.g., pre-sanitized content).{{#if (eq (mod index 2) 0)}}, create a helper {{#if (isEven index)}} or, better yet, pre-calculate isEven in the data model.partials/ directory._card.hbs, _navbar.hbs.{{> myPartial specificData }} is preferred over implicit context inheritance.{{#> layout}} ... {{/layout}} for wrapping content (like slots)..lean() or .toJSON()) before passing to Handlebars to avoid prototype access issues.Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.