template-axum-htmx-tailwind
template-axum-htmx-tailwind copied to clipboard
Add a template function for acquiring cached files
Currently, internally cached files have to be passed into template contexts after acquiring them with assets.get("")?.path.
Ideally, there should be an exposed function like:
<img src="{{ get_asset("something.webp") }}">
...which handles the underlying asset request.