It's possible for templates to include helper files which are automatically loaded by generate-it, but this is not documented anywhere:
|
public registerHelpers (tplDir: string): void { |
Eg if you create in the templates .openapi-nodegen/helpers/myCustomHelper.js then it is automatically available in the templates:
<html>
<head>{{ myCustomHelper }}</head>
<body></body>
</html>
It's possible for templates to include helper files which are automatically loaded by generate-it, but this is not documented anywhere:
generate-it/src/lib/template/TemplateRenderer.ts
Line 117 in 27f86a6
Eg if you create in the templates
.openapi-nodegen/helpers/myCustomHelper.jsthen it is automatically available in the templates: