kaaveland / eugene

Careful With that Lock, Eugene
MIT License
31 stars 0 forks source link

Introduce template engine #67

Closed kaaveland closed 1 month ago

kaaveland commented 1 month 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 1 month 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 1 month ago

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

kaaveland commented 1 month ago

Closing this for now: