swagger-api / swagger-api/swagger-codegen-generators

How to register helpers in handlebars?

Open
#958 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
299
Forks
439
PR merge metrics
No merged PRs in 30d

Description

Hi! I want to use conditional helpers like eq, neq, lt, gt, and, or, not, etc., but its don't work.
https://github.com/jknack/handlebars.java#conditional-helpers

I mean globally for all generators. To use them in overridden templates.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked handlebars.java conditional-helpers documentation and trace how this project registers helpers for generators and overridden templates. Confirm whether the requested helpers can be registered globally, then document or implement the registration path and verify that conditional helpers work in overridden templates.

Written by the indexing model from the issue text.

Assessment

Tech stack
handlebars
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.