Liking cljdoc? Tell your friends :D

reagent.format


add-slashescljs

(add-slashes s)
source

capitalize-wordscljs

(capitalize-words s)
source

centercljs

(center text w)
source

currency-formatcljs

(currency-format n)

formats currency using the current locale to change locale set goog.i18n.NumberFormatSymbols eg: (set! goog.i18n.NumberFormatSymbols goog.i18n.NumberFormatSymbols_it_IT) see here for supported locales https://github.com/google/closure-library/blob/master/closure/goog/i18n/numberformatsymbols.js

formats currency using the current locale
to change locale set goog.i18n.NumberFormatSymbols eg:
(set! goog.i18n.NumberFormatSymbols goog.i18n.NumberFormatSymbols_it_IT)
see here for supported locales
https://github.com/google/closure-library/blob/master/closure/goog/i18n/numberformatsymbols.js
sourceraw docstring

date-formatcljs

(date-format date fmt & [tz])
source

encode-uricljs

(encode-uri uri)
source

formatcljs

(format fmt & args)

Formats a string using goog.string.format. e.g: (format "Cost: %.2f" 10.0234)

Formats a string using goog.string.format.
e.g: (format "Cost: %.2f" 10.0234)
sourceraw docstring

line-numberscljs

(line-numbers s)
source

pluralizecljs

(pluralize items & [word ending1 ending2 :as opts])

pluralizes the word based on the number of items (util/pluralize ["John"] "lad") (util/pluralize ["John" "James"] "lad") (util/pluralize ["Alice"] "lad" "y" "ies")

pluralizes the word based on the number of items
(util/pluralize ["John"] "lad")
(util/pluralize ["John" "James"] "lad")
(util/pluralize ["Alice"] "lad" "y" "ies")
sourceraw docstring

printfcljs

(printf fmt & args)

Prints formatted output, as per format

Prints formatted output, as per format
sourceraw docstring

remove-tagscljs

(remove-tags s & tags)

removes specified tags, eg: (remove-tags "<p>foo bar</p>" "p")

removes specified tags, eg:
(remove-tags "<p>foo bar</p>" "p")
sourceraw docstring

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

× close