aligator / GoSlice

This is an experimental slicer for 3d printing written in Go also usable as modular slicing lib.
Apache License 2.0
110 stars 17 forks source link

Go Templating support in start / end gcode #47

Open aligator opened 3 years ago

aligator commented 3 years ago

Based on the work from https://github.com/aligator/GoSlice/pull/45 I think support for the Go templates would be really nice. https://golangdocs.com/templates-in-golang

So for example the whole configuration and maybe some additional info such as max layer count could be passed to it and then it would be even possible to create conditional gcode templates (e.g. only if starting-temp > 0, set it.)

If possible: still allow the simple templates of https://github.com/aligator/GoSlice/pull/45 to not break the existing templates of the users.