yogthos/Selmer

Minify HTML before caching

開放

#221 建立於 2020年4月9日

 (3 則留言) (0 個反應) (0 位負責人)Clojure (121 個分叉)batch import
enhancementhelp wanted

倉庫指標

星標
 (1,042 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南