poka.sh

Docs

HBS

Generated by scripts/gen-format-pages.py from docs/data/format-metadata/, FILE_FORMATS.csv and docs/formats-master.csv. Do not edit by hand: change the source, then run the script.

Handlebars Template Preview.

At a glance

Purpose A Handlebars or Mustache template: text or HTML with {{…}} placeholders, blocks and partials.
Extensions .hbs
Poka parser poka-hbs
Viewer poka-metadata-card-viewer
Depth tier Metadata card (see Depth tiers)
Breadth tier B4 Summary (see Breadth tiers)

How much Poka reads

B4 Summary. The container and metadata are read and summarised (counts, properties, structure), but the main content is not rendered.

Confidence: medium (the reviewer read the code). Basis: Reviewed 2026-10-26: read parsers/poka-hbs/src/main.rs (264 lines) and plugin.json in full. The crate has no unit tests and no tests/samples.rs, and the corpus has no .hbs, .handlebars and .mustache sample, so the tier rests on reading the code. Covers .hbs, .handlebars and .mustache. The output is a metadata card of counts found by matching text line by line: the detected flavour (Handlebars or Mustache), expressions, substitutions and triple-brace substitutions, block openers and closers, partials, comments, decorators, sub-expressions, chained helpers and the most used helpers and variables. Judgement: B4, because the structure is summarised but the source itself is never shown.

What Poka does not read

  • The source text is not shown: the card carries only counts and a few sample names, with no code view or highlighting
  • Constructs are found by matching text line by line, not by parsing, so multi-line declarations, nested or indented definitions and keywords inside strings or comments can be miscounted
  • Counts of named items stop where their name list is capped (sample helpers at 8), so a larger file under-reports them
  • Files over 32 MiB are cut to the first 32 MiB (the card says so)
  • Text that is not UTF-8 is decoded with replacement characters; no other encoding is tried
  • The template is not rendered and partials are not resolved
  • The literal text and HTML around the placeholders is not shown

Libraries

Libraries Poka uses or has assessed for this format, with the status, licence and language the registry records.

  • handlebars-rust (handlebars crate) (candidate; MIT; Rust; https://github.com/sunng87/handlebars-rust) — Handlebars implementation in Rust; the docs.rs listing mentions WebAssembly support only via an unverified aggregator page.
  • @handlebars/parser (candidate; ISC; JavaScript; https://github.com/handlebars-lang/handlebars-parser) — Official standalone Handlebars.js parser and AST. ISC licence taken from npm listing shown in search results; the repo page did not state it.

Sources

  • parsers/poka-hbs/src/main.rs
  • parsers/poka-hbs/plugin.json