template-axum-htmx-tailwind icon indicating copy to clipboard operation
template-axum-htmx-tailwind copied to clipboard

Add a template function for acquiring cached files

Open robertwayne opened this issue 2 years ago • 0 comments

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.

robertwayne avatar Oct 05 '23 00:10 robertwayne