yogthos/Selmer

Minify HTML before caching

Open

#221 geöffnet am 9. Apr. 2020

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Clojure (86 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (670 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 39m) (4 gemergte PRs in 30 T)

Beschreibung

Is it possible to hook up a minifier before caching the template?

I was looking at gluing Selmer and this: https://github.com/yogthos/asset-minifier (more specifically this) but it seems that I would have to run the minifcation on top of Selmer's already cached content?

The thing I am trying to avoid is having to cache twice, or having to run minifcation on requests themselves.

Or should I manually minify the template itself after each edit?

(did I say minify enough times?)

Contributor Guide