A fork of Twitter's Hogan.js Mustache compiler (v0.0.1), adding helpers, method call chaining, dot notation, shorthand section close tags, and piped helpers. Released as a pre-1.0 package with limited documentation and bug fixes for delimiter handling and partial context access. Differentiated from Hogan.js by extended functionality for method calls and helpers, but likely incompatible with standard Mustache specifications.
npm install techhead-hoganNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compile and render a basic Mustache template, then demonstrates piped helper usage with join.
Pass { enableHelpers: 1, fixMethodCalls: 1 } to compile().When using shorthand close tags, specify custom delimiters, e.g., { delimiters: '{{ }}' } or '{ }'.Add fixMethodCalls:1 to compile options.
Test templates against standard Mustache spec; avoid using new features if cross-compatibility is required.
Use correct import: import hogan from 'techhead-hogan'; then hogan.compile().
Use import statement or dynamic import: const hogan = await import('techhead-hogan').then(m => m.default);Compile with { enableHelpers: 1 }.No dependency data recorded yet.