risor-io / risor

Fast and flexible scripting for Go developers and DevOps.
https://risor.io
Apache License 2.0
581 stars 24 forks source link

feat: add template module #152

Closed luisdavim closed 6 months ago

luisdavim commented 6 months ago

As discussed in https://github.com/risor-io/risor/discussions/68

myzie commented 6 months ago

This is great. Thanks for working with me on those little adjustments.

You made a great choice with having the data be the first argument to the render function. Being able to use a pipe statement to feed the input data into the rendering feels superb.

The examples you've been adding are really helpful for reviewing as well.