prettier-plugin-go-template icon indicating copy to clipboard operation
prettier-plugin-go-template copied to clipboard

Setup child parser

Open richtera opened this issue 3 years ago • 4 comments

It would be really useful to setup a way to specify a child parser so that it's possible to use it for hugo templated js file as well as hugo templates HTML or templates json, yaml or xml.

richtera avatar Nov 07 '20 19:11 richtera

This will be very difficult, as the current implementation kind of depends on the html formatter. In case this project gains enough traction I'll rewrite the parser with this in mind, but atleast for now this is out of scope.

I'll leave this open, because it is a very good suggestion. Could also be helpful with markdown.

Also I'm very sorry for answering this late, just missed this issue in my mail notifications👀

NiklasPor avatar Jan 07 '21 13:01 NiklasPor

I think this could be quite doable as a long term goal. With the new implementation from #49 I should be able to switch to a different child parser.

Once all the basic features are done I'll come back to this.

NiklasPor avatar May 24 '21 19:05 NiklasPor

Chiming in in favor of Markdown support, as I use .md.tmpl files for automating common tasks using templates while writing. Thanks for your hard work and the updates 😊

glacials avatar Jun 17 '22 16:06 glacials

Support for YAML would be of great help for Helm Charts, for example.

felipecrs avatar Jun 21 '23 14:06 felipecrs