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]
(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.
(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.
(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
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close