Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Experimental ring middleware for reloading enlive templates

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time


Experimental ring middleware for reloading enlive templates.

This ring middleware automatically reloads enlive templates when their HTML files change.

It requires a patch to enlive, to record the source paths of templates in metadata, so that they can be introspected by the middleware.


This is just an experiment. The patch hasn't been accepted into enlive, and is subject to change.

The patch currently assumes that the source parameter to deftemplate and defsnippet is a string. It might not be.


Add the dependency:

    [net.djpowell/reload-templates "0.1.0"]

Then use the middleware as below:

    (-> handler
        (wrap-reload-templates [


Copyright (C) 2012 David Powell

Distributed under the Eclipse Public License, the same as Clojure.

Something went wrong with that request. Please try again.