kaaveland / eugene

Careful With that Lock, Eugene
MIT License
32 stars 1 forks source link

Introduce template engine #67

Closed kaaveland closed 6 months ago

kaaveland commented 6 months ago

It would be good to use a templating engine for rendering markdown now. We have the snapshot tests rig to help us make sure we don't change output unexpectedly, and it would reduce the complexity of the crate at this point. Both tera and handlebars look like good options that would slot nicely into eugene, since they can consume objects that are Serialize, which we already produce for json output.

kaaveland commented 6 months ago

mdbook, which we use for docs uses handlebars. I don't mind it and I'm pretty sure it delivers what we need:

kaaveland commented 6 months ago

70 solves this on the surface level, but there's still work to do, so keeping this open:

kaaveland commented 6 months ago

Closing this for now: