资源说明:Wrap responses by rendering Google Closure Templates with the data provided in :body
# ring.middleware.closure-templates ALPHA Wrap responses by rendering Google Closure Templates with the data provided in :body. This middleware takes a path to your Closure Templates and compiles them. When a response is returned, wrap-templates will use the :body value to render the template specified by :template. ## Usage (use 'ring.middleware.closure-templates) (defn app [req] {:body {:template "ns.templateName" :templateVar "value"}}) (def templ-app (wrap-templates app "test-resources")) See tests for details. ## License Copyright (C) 2011 Jim Blomo Distributed under the Eclipse Public License, the same as Clojure.
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。