- Renamed
Ogi.Cache.clean! to simply Ogi.Cache.clean since it will never raise.
- Fixed
Ogi.Cache.clean() exception if cache folder doesn't exist.
- Added documentation and tests
- Typst options passed to
Ogi.render_to_png/4 must be nested under typst_opts now:
# Before
opts = [root_dir: "priv/typst"]
Ogi.render_to_png(filename, markup, assigns, opts)
# After
opts = [typst_opts: [root_dir: "priv/typst"]]
Ogi.render_to_png(filename, markup, assigns, opts)
- Add
fallback_image_path and cache_dir config options.
- Validate options received in
Ogi.render_to_png/4
- Add Quokka for consistent formatting (👀👀👀 Mr. G.W.)
- Added
render_to_png/4 and render_image/5 for rendering images using Typst from your controller
- Added basic caching without clean-up