cyclosproject / ng-openapi-gen

An OpenAPI 3.0 codegen for Angular
MIT License
397 stars 132 forks source link

Add suport for custom Handlerbars helpers #125

Closed jmls closed 3 years ago

jmls commented 4 years ago

I'd like to add a helper to the handlebars instance - is there a way of doing this so I can refer to the helper in a template ?

eLarocque commented 3 years ago

I am also in the same boat as jmls. Is there a hook somewhere that can be used to provide custom handlebar helpers? For example, we have HTML in the YAML descriptions that we would like to convert to Markdown when generating the TS code from the templates. Custom Handlebars support seems like an easy way to allow more customization options.

luisfpg commented 3 years ago

It is not currently possible. We're open to help on this.

eLarocque commented 3 years ago

Hi, I have implemented the feature in a local branch. Requesting permission to push my branch for review :) Thanks.

luisfpg commented 3 years ago

Sure, submit a pull request.

eLarocque commented 3 years ago

Sorry I'm fairly new to Github collaboration... Don't I need to be able to push to a new branch in order for a PR to be sent? I don't have permissions to push to this repo. Is it possible I need to be given access? Or is there another way to work in Github I'm not aware of ?

eLarocque commented 3 years ago

Nevermind I found out how using the forks. Sending PR shortly