yogthos/Selmer

Minify HTML before caching

Aberta

#221 aberto em 9 de abr. de 2020

 (3 comentários) (0 reação) (0 responsável)Clojure (121 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (1.042 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

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

Guia do colaborador