Liking cljdoc? Tell your friends :D

rumext.compiler

Hicada - Hiccup compiler aus dem Allgaeu

NOTE: The code for has been forked like this: weavejester/hiccup -> r0man/sablono -> Hicada -> rumext

Hicada - Hiccup compiler aus dem Allgaeu

NOTE: The code for has been forked like this:
weavejester/hiccup -> r0man/sablono -> Hicada -> rumext
raw docstring

*config*clj/s

source

*handlers*clj/s

source

compileclj/s

(compile content)
(compile content opts)
(compile content opts handlers)
(compile content opts handlers env)

Arguments:

  • content: The hiccup to compile
  • opts o :array-children? - for product build of React only or you'll enojoy a lot of warnings :) o :wrap-input? - if inputs should be wrapped. Try without! o :rewrite-for? - rewrites simple (for [x xs] ...) into efficient reduce pushing into a JS array. o :emit-fn - optinal: called with [type config-js child-or-children] o :camelcase-key-pred - defaults to (some-fn keyword? symbol?), ie. map keys that have string keys, are NOT by default converted from kebab-case to camelCase! o :transform-fn - Called with [[tag attrs children]] before emitting, to get transformed element as [tag attrs children]
  • handlers: A map to handle special tags. See default-handlers in this namespace.
  • env: The macro environment. Not used currently.
Arguments:
- content: The hiccup to compile
- opts
 o :array-children? - for product build of React only or you'll enojoy a lot of warnings :)
 o :wrap-input? - if inputs should be wrapped. Try without!
 o :rewrite-for? - rewrites simple (for [x xs] ...) into efficient reduce pushing into
                        a JS array.
 o :emit-fn - optinal: called with [type config-js child-or-children]
 o :camelcase-key-pred - defaults to (some-fn keyword? symbol?), ie. map keys that have
                         string keys, are NOT by default converted from kebab-case to camelCase!
 o :transform-fn - Called with [[tag attrs children]] before emitting, to get
                   transformed element as [tag attrs children]
- handlers:
 A map to handle special tags. See default-handlers in this namespace.
- env: The macro environment. Not used currently.
sourceraw docstring

compile*clj/s

(compile* content)

Pre-compile data structures

Pre-compile data structures
sourceraw docstring

compile-attrclj/s

(compile-attr [key val :as kvpair])
source

compile-attrsclj/s

(compile-attrs attrs)

Compile a JSX attributes map.

Compile a JSX attributes map.
sourceraw docstring

compile-elementclj/s

(compile-element [tag attrs & children :as element])

Returns an unevaluated form that will render the supplied vector as a HTML element.

Returns an unevaluated form that will render the supplied vector as a HTML element.
sourceraw docstring

compile-formclj/smultimethod

Pre-compile certain standard forms, where possible.

Pre-compile certain standard forms, where possible.
sourceraw docstring

default-configclj/s

source

default-handlersclj/s

source

emit-reactclj/s

(emit-react tag attrs children)

Emits the final react js code

Emits the final react js code
sourceraw docstring

tag->elclj/s

(tag->el x)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close