Attributes that are rendered without value
Attributes that are rendered without value
(compile-cond [_ & clauses])
Compile special :ripley.html/cond element.
Compile special :ripley.html/cond element.
(compile-for [_ bindings body :as form])
Compile special :ripley.html/for element.
Compile special :ripley.html/for element.
(compile-html-element body)
Compile HTML markup element, like [:div.someclass "content"].
Compile HTML markup element, like [:div.someclass "content"].
(compile-if [_ test then else :as form])
Compile special :ripley.html/if element.
Compile special :ripley.html/if element.
(compile-let [_ bindings body])
Compile special :ripley.html/let element.
Compile special :ripley.html/let element.
(compile-live live-element)
Compile special :ripley.html/live element.
Compile special :ripley.html/live element.
Compile a special element, that is not regular HTML vector. Dispatches on the first keyword.
Compile a special element, that is not regular HTML vector. Dispatches on the first keyword.
(compile-when [_ test then :as form])
Compile special :ripley.html/when element.
Compile special :ripley.html/when element.
(html body)
Compile hiccup to HTML output.
Compile hiccup to HTML output.
Attribute names that should not be mangled (like SVG attrs having dashes)
Attribute names that should not be mangled (like SVG attrs having dashes)
(render-response render-fn)
(render-response response-map render-fn)
(render-response response-map render-fn context-options)
Return a ring reponse that renders HTML. The function is called with HTML output bound.
To customize ring response being sent out, an optional response map can be provided. The response may not contain a :body as that is generated by the rendering.
To customize the context, an optional options map can be given as the last argument. The following options are supported:
:bindings Set of vars to capture bindings for. Whenever a callback or component is registered during rendering, the bindings for the vars in this set are captured. The bindings are reinstated when the component is rerended or the callback invoked. This makes it possible to use dynamic scope (like user info, db pools etc) and not need to pass everything as input parameters to components.
Return a ring reponse that renders HTML. The function is called with HTML output bound. To customize ring response being sent out, an optional response map can be provided. The response may not contain a :body as that is generated by the rendering. To customize the context, an optional options map can be given as the last argument. The following options are supported: :bindings Set of vars to capture bindings for. Whenever a callback or component is registered during rendering, the bindings for the vars in this set are captured. The bindings are reinstated when the component is rerended or the callback invoked. This makes it possible to use dynamic scope (like user info, db pools etc) and not need to pass everything as input parameters to components.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close