swagger-api / swagger-codegen-generators

Apache License 2.0
284 stars 424 forks source link

How to register helpers in handlebars? #958

Open 4n70w4 opened 3 years ago

4n70w4 commented 3 years ago

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.

CBeloch commented 2 years ago

I would love to see ConditionalHelpers and StringHelpers beeing enabled globally. The only template that registers these helpers seems to be the kotlin generator