yogthos/Selmer

Minify HTML before caching

Open

#221 ouverte le 9 avr. 2020

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)Clojure (86 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (670 stars)
Métriques de merge PR
 (Merge moyen 39m) (4 PRs mergées en 30 j)

Description

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?)

Guide contributeur