Liking cljdoc? Tell your friends :D

sablono.core


*group*cljs

source

attrsclj/smacro

(attrs attributes)

Compile attributes map into a JavaScript literal.

Compile `attributes` map into a JavaScript literal.
sourceraw docstring

check-boxcljs

source

check-box3065cljs

(check-box3065 name)
(check-box3065 name checked?)
(check-box3065 name checked? value)

Creates a check box.

Creates a check box.
sourceraw docstring

color-fieldcljs

source

color-field3014cljs

(color-field3014 name__2965__auto__)
(color-field3014 name__2965__auto__ value__2966__auto__)

Creates a color input field.

Creates a color input field.
sourceraw docstring

create-elementcljs

The React.js create element function.

The React.js create element function.
sourceraw docstring

date-fieldcljs

source

date-field3017cljs

(date-field3017 name__2965__auto__)
(date-field3017 name__2965__auto__ value__2966__auto__)

Creates a date input field.

Creates a date input field.
sourceraw docstring

datetime-fieldcljs

source

datetime-field3020cljs

(datetime-field3020 name__2965__auto__)
(datetime-field3020 name__2965__auto__ value__2966__auto__)

Creates a datetime input field.

Creates a datetime input field.
sourceraw docstring

datetime-local-fieldcljs

source

datetime-local-field3023cljs

(datetime-local-field3023 name__2965__auto__)
(datetime-local-field3023 name__2965__auto__ value__2966__auto__)

Creates a datetime-local input field.

Creates a datetime-local input field.
sourceraw docstring

defelemclj/smacro

(defelem name & fdecl)

Defines a function that will return a element vector. If the first argument passed to the resulting function is a map, it merges it with the attribute map of the returned element value.

Defines a function that will return a element vector. If the first
argument passed to the resulting function is a map, it merges it
with the attribute map of the returned element value.
sourceraw docstring

defhtmlclj/smacro

(defhtml name & fdecl)

Define a function, but wrap its output in an implicit html macro.

Define a function, but wrap its output in an implicit html macro.
sourceraw docstring

source

(drop-down3082 name options)
(drop-down3082 name options selected)

Creates a drop-down box using the <select> tag.

Creates a drop-down box using the <select> tag.
sourceraw docstring

email-fieldcljs

source

email-field3026cljs

(email-field3026 name__2965__auto__)
(email-field3026 name__2965__auto__ value__2966__auto__)

Creates a email input field.

Creates a email input field.
sourceraw docstring

file-fieldcljs

source

file-field3029cljs

(file-field3029 name__2965__auto__)
(file-field3029 name__2965__auto__ value__2966__auto__)

Creates a file input field.

Creates a file input field.
sourceraw docstring

file-uploadcljs

source

form-tocljs

source

form-to3091cljs

(form-to3091 [method action] & body)

Create a form that points to a particular method and route. e.g. (form-to [:put "/post"] ...)

Create a form that points to a particular method and route.
e.g. (form-to [:put "/post"]
       ...)
sourceraw docstring

fragmentcljs

The React.js Fragment.

The React.js Fragment.
sourceraw docstring

gen-input-fieldclj

(gen-input-field input-type)

Generate an input field of input-type.

Generate an input field of `input-type`.
sourceraw docstring

gen-input-fieldsclj/smacro

(gen-input-fields)

Generate input fields for all input-fields.

Generate input fields for all `input-fields`.
sourceraw docstring

hidden-fieldcljs

source

hidden-field3032cljs

(hidden-field3032 name__2965__auto__)
(hidden-field3032 name__2965__auto__ value__2966__auto__)

Creates a hidden input field.

Creates a hidden input field.
sourceraw docstring

htmlclj/smacro

(html form)

Compile the Hiccup form. Produces code that evaluates to React elements when running under ClojureScript environment, or om.dom.Element records when running under Clojure.

Compile the Hiccup `form`. Produces code that evaluates to React
elements when running under ClojureScript environment, or
om.dom.Element records when running under Clojure.
sourceraw docstring

html*clj/smacro

(html* form)

Compile the Hiccup form. Always produces code that evaluates to React elements.

Compile the Hiccup `form`. Always produces code that evaluates to
React elements.
sourceraw docstring

html-expandclj/smacro

(html-expand form)

Macro expand the Hiccup content.

Macro expand the Hiccup `content`.
sourceraw docstring

imagecljs

source

image3005cljs

(image3005 src)
(image3005 src alt)

Create an image element.

Create an image element.
sourceraw docstring

include-csscljs

(include-css & styles)

Include a list of external stylesheet files.

Include a list of external stylesheet files.
sourceraw docstring

include-jscljs

(include-js src)

Include the JavaScript library at src.

Include the JavaScript library at `src`.
sourceraw docstring

include-reactcljs

(include-react)

Include Facebook's React JavaScript library.

Include Facebook's React JavaScript library.
sourceraw docstring

input-fieldsclj

The types of HTML input fields.

The types of HTML input fields.
sourceraw docstring

labelcljs

source

label3088cljs

(label3088 name text)

Creates a label for an input field with the supplied name.

Creates a label for an input field with the supplied name.
sourceraw docstring

source

(link-to2985 url & content)

Wraps some content in a HTML hyperlink with the supplied URL.

Wraps some content in a HTML hyperlink with the supplied URL.
sourceraw docstring

mail-tocljs

source

mail-to2988cljs

(mail-to2988 e-mail & [content])

Wraps some content in a HTML hyperlink with the supplied e-mail address. If no content provided use the e-mail address as content.

Wraps some content in a HTML hyperlink with the supplied e-mail
address. If no content provided use the e-mail address as content.
sourceraw docstring

month-fieldcljs

source

month-field3035cljs

(month-field3035 name__2965__auto__)
(month-field3035 name__2965__auto__ value__2966__auto__)

Creates a month input field.

Creates a month input field.
sourceraw docstring

number-fieldcljs

source

number-field3038cljs

(number-field3038 name__2965__auto__)
(number-field3038 name__2965__auto__ value__2966__auto__)

Creates a number input field.

Creates a number input field.
sourceraw docstring

ordered-listcljs

source

ordered-list3000cljs

(ordered-list3000 coll)

Wrap a collection in an ordered list.

Wrap a collection in an ordered list.
sourceraw docstring

password-fieldcljs

source

password-field3041cljs

(password-field3041 name__2965__auto__)
(password-field3041 name__2965__auto__ value__2966__auto__)

Creates a password input field.

Creates a password input field.
sourceraw docstring

radio-buttoncljs

source

radio-button3068cljs

(radio-button3068 group)
(radio-button3068 group checked?)
(radio-button3068 group checked? value)

Creates a radio button.

Creates a radio button.
sourceraw docstring

range-fieldcljs

source

range-field3044cljs

(range-field3044 name__2965__auto__)
(range-field3044 name__2965__auto__ value__2966__auto__)

Creates a range input field.

Creates a range input field.
sourceraw docstring

reset-buttoncljs

source

reset-button3090cljs

(reset-button3090 text)

Creates a form reset button.

Creates a form reset button.
sourceraw docstring

search-fieldcljs

source

search-field3047cljs

(search-field3047 name__2965__auto__)
(search-field3047 name__2965__auto__ value__2966__auto__)

Creates a search input field.

Creates a search input field.
sourceraw docstring

select-optionscljs

source

select-options3071cljs

(select-options3071 coll)

Creates a seq of option tags from a collection.

Creates a seq of option tags from a collection.
sourceraw docstring

submit-buttoncljs

source

submit-button3089cljs

(submit-button3089 text)

Creates a submit button.

Creates a submit button.
sourceraw docstring

tel-fieldcljs

source

tel-field3050cljs

(tel-field3050 name__2965__auto__)
(tel-field3050 name__2965__auto__ value__2966__auto__)

Creates a tel input field.

Creates a tel input field.
sourceraw docstring

text-areacljs

source

text-area3085cljs

(text-area3085 name)
(text-area3085 name value)

Creates a text area element.

Creates a text area element.
sourceraw docstring

text-fieldcljs

source

text-field3053cljs

(text-field3053 name__2965__auto__)
(text-field3053 name__2965__auto__ value__2966__auto__)

Creates a text input field.

Creates a text input field.
sourceraw docstring

time-fieldcljs

source

time-field3056cljs

(time-field3056 name__2965__auto__)
(time-field3056 name__2965__auto__ value__2966__auto__)

Creates a time input field.

Creates a time input field.
sourceraw docstring

unordered-listcljs

source

unordered-list2995cljs

(unordered-list2995 coll)

Wrap a collection in an unordered list.

Wrap a collection in an unordered list.
sourceraw docstring

url-fieldcljs

source

url-field3059cljs

(url-field3059 name__2965__auto__)
(url-field3059 name__2965__auto__ value__2966__auto__)

Creates a url input field.

Creates a url input field.
sourceraw docstring

week-fieldcljs

source

week-field3062cljs

(week-field3062 name__2965__auto__)
(week-field3062 name__2965__auto__ value__2966__auto__)

Creates a week input field.

Creates a week input field.
sourceraw docstring

with-base-urlclj/smacro

(with-base-url base-url & body)

Sets a base URL that will be prepended onto relative URIs. Note that for this to work correctly, it needs to be placed outside the html macro.

Sets a base URL that will be prepended onto relative URIs. Note
that for this to work correctly, it needs to be placed outside the
html macro.
sourceraw docstring

with-groupclj/smacro

(with-group group & body)

Group together a set of related form fields.

Group together a set of related form fields.
sourceraw docstring

wrap-attrscljs

(wrap-attrs func)

Add an optional attribute argument to a function that returns a element vector.

Add an optional attribute argument to a function that returns a element vector.
sourceraw docstring

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

× close