moleculerjs / moleculer-cli

:herb: Command line tool for Moleculer
http://moleculer.services/docs/moleculer-cli.html
MIT License
48 stars 28 forks source link

Missing handlebars helper raw-helper #63

Closed Karnith closed 2 years ago

Karnith commented 2 years ago

I noticed the init is missing the raw-helper helper from handlebars : https://handlebarsjs.com/guide/block-helpers.html#raw-blocks When creating complex moleculer templates with frontends that have {{ }} variables in them the raw-helper should then output the intended code block. e.g.

{{{{raw-helper}}}}
  {{bar}}
{{{{/raw-helper}}}}

will output

{{bar}}

This is especially helpful with vue templates to preserve the template frontend code.

Karnith commented 2 years ago

created pull request: https://github.com/moleculerjs/moleculer-cli/pull/64