Liking cljdoc? Tell your friends :D

juce.core


aclj


abbrclj


addressclj


areaclj


articleclj


asideclj


audioclj


bclj


baseclj


bdiclj


bdoclj


blockquoteclj


bodyclj


brclj


buttonclj


canvasclj


captionclj


citeclj


codeclj


colclj


colgroupclj


create-tag-funcclj

(create-tag-func tag-info)

dataclj


datalistclj


ddclj


delclj


detailsclj


dfnclj


dialogclj


divclj


dlclj


dtclj


emclj


embedclj


fieldsetclj


figcaptionclj


figureclj



formclj


h1clj


h2clj


h3clj


h4clj


h5clj


h6clj




hrclj


htmlclj


iclj


iframeclj


imgclj


inputclj


insclj


kbdclj


labelclj


legendclj


liclj



mainclj


markclj




meterclj



noscriptclj


ns-bindingcljmacro

(ns-binding & requires-and-body)

Temporarily loads one or more external namespaces into juce.core and evaluates the given body in that context.

Usage: (ns-binding '[my.tags :as t] (render "(div (t/button "Click"))"))

Parameters: requires-and-body - A sequence where all but the last element are require forms (vectors), and the last element is the body expression to evaluate.

Behavior:

  • Each require form is evaluated with *ns* bound to juce.core.
  • The body is then evaluated in the same namespace.
  • Useful for making custom tag functions available inside render.

Returns: The result of evaluating the body expression.

Temporarily loads one or more external namespaces into `juce.core` and evaluates the given body in that context.

Usage:
  (ns-binding '[my.tags :as t]
    (render "(div (t/button \"Click\"))"))

Parameters:
  requires-and-body - A sequence where all but the last element are `require` forms (vectors),
                     and the last element is the body expression to evaluate.

Behavior:
  - Each require form is evaluated with `*ns*` bound to `juce.core`.
  - The body is then evaluated in the same namespace.
  - Useful for making custom tag functions available inside `render`.

Returns:
  The result of evaluating the body expression.
raw docstring

objectclj


olclj


optgroupclj


optionclj


outputclj


pclj


paramclj


parse-argsclj

(parse-args args)

pictureclj


preclj


progressclj


qclj


renderclj

(render s)
(render s env)

Evaluates a juce template string and returns the rendered HTML.

Usage: (render "(div :class "x" "Hello")") (render "(p (:name user))" {:user {:name "Alice"}})

Parameters: s - String containing a juce DSL expression. env - Optional map. Keys become local symbols inside the template.

Behavior:

  • The template string is read as a Clojure form.
  • env bindings are injected as locals.
  • The form is evaluated in the juce.core namespace.
  • The result is converted to HTML via render-node.

Returns: HTML string.

Evaluates a juce template string and returns the rendered HTML.

Usage:
  (render "(div :class \"x\" \"Hello\")")
  (render "(p (:name user))" {:user {:name "Alice"}})

Parameters:
  s   - String containing a juce DSL expression.
  env - Optional map. Keys become local symbols inside the template.

Behavior:
  - The template string is read as a Clojure form.
  - `env` bindings are injected as locals.
  - The form is evaluated in the `juce.core` namespace.
  - The result is converted to HTML via `render-node`.

Returns:
  HTML string.
raw docstring

render-attrsclj

(render-attrs attrs predicate-attrs)

render-fileclj

(render-file path)
(render-file path env)

Reads a juce template file and returns the rendered HTML.

Usage: (render-file "template.juce") (render-file "template.juce" {:name "Alice"})

Parameters: path - Path to a file containing a juce DSL expression. env - Optional map of local bindings.

Returns: HTML string.

Reads a juce template file and returns the rendered HTML.

Usage:
  (render-file "template.juce")
  (render-file "template.juce" {:name "Alice"})

Parameters:
  path - Path to a file containing a juce DSL expression.
  env  - Optional map of local bindings.

Returns:
  HTML string.
raw docstring

render-nodeclj

(render-node node)

rpclj


rtclj


rubyclj


sclj


sampclj


scriptclj


sectionclj


selectclj


slotclj


slurp-fileclj

(slurp-file path)

Internal. Reads a file from disk and returns its contents as a string.

Internal. Reads a file from disk and returns its contents as a string.
raw docstring

smallclj


spanclj


strongclj


styleclj


subclj


summaryclj


supclj


svgclj


tableclj


tbodyclj


tdclj


templateclj


textareaclj


tfootclj


thclj


theadclj


titleclj


trclj


trackclj


uclj


ulclj


varclj


videoclj


wbrclj

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close