Action for making Ajax requests, based on clj-ajax.
Action for making Ajax requests, based on clj-ajax.
Utilites to defines actions and utilities to specialize and execute them.
Utilites to defines actions and utilities to specialize and execute them.
Supporting macros for Reacl's DOM library.
Supporting macros for Reacl's DOM library.
A small layer over the primitive dom elements of [[reacl2.dom]], where all event-handlers must return a [[reacl2.core/return]] value instead.
If no event-handlers are registered, then the functions here return a primitive element identical to their counterparts in [[reacl2.dom]]. If event handlers are used, then a class instance is returned instread.
Note that the event-handler must not 'return' a new :app-state or :local-state; only :message and :action are meaningful.
A small layer over the primitive dom elements of [[reacl2.dom]], where all event-handlers must return a [[reacl2.core/return]] value instead. If no event-handlers are registered, then the functions here return a primitive element identical to their counterparts in [[reacl2.dom]]. If event handlers are used, then a class instance is returned instread. Note that the event-handler must not 'return' a new :app-state or :local-state; only :message and :action are meaningful.
Functions and macros that create classes with some typical properties and features.
Functions and macros that create classes with some typical properties and features.
Functions and classes to build user input forms based on app-states and declarative client side validation.
Functions and classes to build user input forms based on app-states and declarative client side validation.
A framework for page-based application.
For a standard HTML5 history page-based application, create 3 files:
my_routes.cljc
(ns my-routes (:require [reacl-basics.pages.routes :as r]))
(r/defroute article "/article/:id")
my_pages.cljs
(ns my-pages (:require [reacl-basics.pages.core :as p]
[my-routes :as my]))
(defclass article-page this app-state [id]
render ...)
(defclass main this app-state []
render
(html5-history-router (reacl/opt ...) app-state
{my/article (p/page article-page)}))
my_client.clj
(ns my-client (:require [reacl-basics.pages.ring :as r]
[reacl-basics.pages.routes :as routes]
my-routes))
(-> app
(r/wrap-client-routes routes/routes (ring-http/ok "<html>...")))
A framework for page-based application. For a standard HTML5 history page-based application, create 3 files: my_routes.cljc ``` (ns my-routes (:require [reacl-basics.pages.routes :as r])) (r/defroute article "/article/:id") ``` my_pages.cljs ``` (ns my-pages (:require [reacl-basics.pages.core :as p] [my-routes :as my])) (defclass article-page this app-state [id] render ...) (defclass main this app-state [] render (html5-history-router (reacl/opt ...) app-state {my/article (p/page article-page)})) ``` my_client.clj ``` (ns my-client (:require [reacl-basics.pages.ring :as r] [reacl-basics.pages.routes :as routes] my-routes)) (-> app (r/wrap-client-routes routes/routes (ring-http/ok "<html>..."))) ```
Subscriptions to Ajax and Websockets.
Subscriptions to Ajax and Websockets.
Subscribables that have to do with time.
Subscribables that have to do with time.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close