fmvilas / swagger-node-codegen

An OpenAPI 3.x/Swagger 2 code generator for Node.js
Apache License 2.0
200 stars 55 forks source link

Custom handlebar helpers #29

Closed guided1 closed 6 years ago

guided1 commented 6 years ago

Hi, I'd like to be able to create and include helper for handlebars not in the library. Do you have a preference of how you want to achieve this?

I was thinking of using a parameter supplying another parameter:

-b, --handlebars path to external handlebars helpers file

This would then include the file if the path is valid and it exists.

Thoughts?

I'll put in a pull request if you agree

fmvilas commented 6 years ago

That'd be awesome! Could you provide a PR?

guided1 commented 6 years ago

Sure thing. https://github.com/fmvilas/swagger-node-codegen/pull/30

fmvilas commented 6 years ago

I'm closing this issue since #30 has been merged.

fmvilas commented 6 years ago

I just did a release and published to npm: https://github.com/fmvilas/swagger-node-codegen/releases/tag/1.3.0.