A collection of Clojure and ClojureScript macros for web and mobile development.
Note: These are currently under heavy development. All interfaces are work in progress and may change substantially until this notice has disappeared.
defview
- Defining Om Next components in a compact wayOm Next views are a combination of an Om Next component defined
with om.next/defui
and a component factory created with
om.next/factory
. The defview
macro combines these two into
a single definition and reduces the boilerplate code needed to
define properties, idents, React keys, queries and component
functions.
defscreen
- Defining the screens of an Om Next appdefcommand
- Defining pure commands with queries and input data specsThe defcommand
macro allows to define pure functions that represent
named commands in a system. Commands defined with this macro include
an optional query, e.g. to retrieve data from a database, and a
mandatory clojure.spec
spec for the command input data. The query
results (if there are any) and the validated command data are the only
inputs passed to the command implementation at run-time.
defentity
- Defining entities with authentication and validationThe defentity
macro allows to describe entities in the system, with
a schema, validation rules and code for authorization.
Workflo Macros is copyright (C) 2016-2017 Workflo. Licensed under the MIT License. For more information see the LICENSE file.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close