Liking cljdoc? Tell your friends :D

pinkgorilla.ui.jsrender

jsrender is part of a jsrequire based module system to render data via javascipt inside reagent components. Typically custom ui renderers would use it: [jsrender custom-module data]

jsrender is part of a jsrequire based module system to render data via javascipt inside
reagent components. Typically custom ui renderers would use it:
[jsrender custom-module data]
raw docstring

get-js-module-from-stringcljs

(get-js-module-from-string js-snippet callback)

loads a module, and executes a callback containing the loaded module. js-snippet: a string, that defines the module. Example: define([],function(){return 'world!'}) define([],function(){return {render: function (name) {return 'hello, ' + name}}}) Implementation: The snippet is passed as a parameter to the 'loadstring' module. The loadstring module then does the real work.

loads a module, and executes a callback containing the loaded module.
js-snippet: a string, that defines the module. 
           Example: define([],function(){return 'world!'})
                    define([],function(){return {render: function (name) {return 'hello, ' + name}}})
Implementation:
The snippet is passed as a parameter to the 'loadstring' module.
The loadstring module then does the real work.
sourceraw docstring

get-js-module-with-namecljs

(get-js-module-with-name module-name callback)

loads a module (with a given name; the module then will be looked up in the require.js module configuration). It then executes the callback, passing it the loaded module.

loads a module (with a given name; the module then will be looked up in the
require.js module configuration). It then executes the callback, passing it
the loaded module.
sourceraw docstring

infocljs

(info s)
source

jsrendercljs

(jsrender {:keys [module data]})
source

render-data-from-js-modulecljs

(render-data-from-js-module id-or-el data js-module)

renders data to dom, using a loaded js-module

renders data to dom, using a loaded js-module
sourceraw docstring

require-js-modulecljs

(require-js-module spec callback)

loads a module via js-require spec can be either ["demo"] or ["demo!params"] executes a callback with the loaded module

loads a module via js-require
spec can be either ["demo"] or ["demo!params"]
executes a callback with the loaded module
sourceraw docstring

run-scriptcljs

(run-script id-or-el data module-name)
source

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

× close