adl/doc/adl.to-selmer-routes.html
Simon Brooke 0b495adddc Fix in generated documentation strings!
Also, documentation added to repository.
2018-09-23 14:18:59 +01:00

28 lines
11 KiB
HTML

<!DOCTYPE html PUBLIC ""
"">
<html><head><meta charset="UTF-8" /><title>adl.to-selmer-routes documentation</title><link rel="stylesheet" type="text/css" href="css/default.css" /><link rel="stylesheet" type="text/css" href="css/highlight.css" /><script type="text/javascript" src="js/highlight.min.js"></script><script type="text/javascript" src="js/jquery.min.js"></script><script type="text/javascript" src="js/page_effects.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div id="header"><h2>Generated by <a href="https://github.com/weavejester/codox">Codox</a></h2><h1><a href="index.html"><span class="project-title"><span class="project-name">Adl</span> <span class="project-version">1.4.6-SNAPSHOT</span></span></a></h1></div><div class="sidebar primary"><h3 class="no-link"><span class="inner">Project</span></h3><ul class="index-link"><li class="depth-1 "><a href="index.html"><div class="inner">Index</div></a></li></ul><h3 class="no-link"><span class="inner">Topics</span></h3><ul><li class="depth-1 "><a href="intro.html"><div class="inner"><span>Introduction</span></div></a></li></ul><h3 class="no-link"><span class="inner">Namespaces</span></h3><ul><li class="depth-1"><div class="no-link"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>adl</span></div></div></li><li class="depth-2 branch"><a href="adl.main.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>main</span></div></a></li><li class="depth-2 branch"><a href="adl.to-hugsql-queries.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>to-hugsql-queries</span></div></a></li><li class="depth-2 branch"><a href="adl.to-json-routes.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>to-json-routes</span></div></a></li><li class="depth-2 branch"><a href="adl.to-psql.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>to-psql</span></div></a></li><li class="depth-2 branch"><a href="adl.to-reframe.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>to-reframe</span></div></a></li><li class="depth-2 branch current"><a href="adl.to-selmer-routes.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>to-selmer-routes</span></div></a></li><li class="depth-2 branch"><a href="adl.to-selmer-templates.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>to-selmer-templates</span></div></a></li><li class="depth-2 branch"><a href="adl.to-swagger.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>to-swagger</span></div></a></li><li class="depth-2"><a href="adl.validator.html"><div class="inner"><span class="tree"><span class="top"></span><span class="bottom"></span></span><span>validator</span></div></a></li></ul></div><div class="sidebar secondary"><h3><a href="#top"><span class="inner">Public Vars</span></a></h3><ul><li class="depth-1"><a href="adl.to-selmer-routes.html#var-compose-fetch-auxlist-data"><div class="inner"><span>compose-fetch-auxlist-data</span></div></a></li><li class="depth-1"><a href="adl.to-selmer-routes.html#var-compose-fetch-record"><div class="inner"><span>compose-fetch-record</span></div></a></li><li class="depth-1"><a href="adl.to-selmer-routes.html#var-compose-get-menu-options"><div class="inner"><span>compose-get-menu-options</span></div></a></li><li class="depth-1"><a href="adl.to-selmer-routes.html#var-file-header"><div class="inner"><span>file-header</span></div></a></li><li class="depth-1"><a href="adl.to-selmer-routes.html#var-generate-handler-resolver"><div class="inner"><span>generate-handler-resolver</span></div></a></li><li class="depth-1"><a href="adl.to-selmer-routes.html#var-handler-name"><div class="inner"><span>handler-name</span></div></a></li><li class="depth-1"><a href="adl.to-selmer-routes.html#var-make-defroutes"><div class="inner"><span>make-defroutes</span></div></a></li><li class="depth-1"><a href="adl.to-selmer-routes.html#var-make-form-get-handler-content"><div class="inner"><span>make-form-get-handler-content</span></div></a></li><li class="depth-1"><a href="adl.to-selmer-routes.html#var-make-form-post-handler-content"><div class="inner"><span>make-form-post-handler-content</span></div></a></li><li class="depth-1"><a href="adl.to-selmer-routes.html#var-make-get-handler"><div class="inner"><span>make-get-handler</span></div></a></li><li class="depth-1"><a href="adl.to-selmer-routes.html#var-make-handlers"><div class="inner"><span>make-handlers</span></div></a></li><li class="depth-1"><a href="adl.to-selmer-routes.html#var-make-list-get-handler-content"><div class="inner"><span>make-list-get-handler-content</span></div></a></li><li class="depth-1"><a href="adl.to-selmer-routes.html#var-make-page-get-handler-content"><div class="inner"><span>make-page-get-handler-content</span></div></a></li><li class="depth-1"><a href="adl.to-selmer-routes.html#var-make-post-handler"><div class="inner"><span>make-post-handler</span></div></a></li><li class="depth-1"><a href="adl.to-selmer-routes.html#var-make-route"><div class="inner"><span>make-route</span></div></a></li><li class="depth-1"><a href="adl.to-selmer-routes.html#var-to-selmer-routes"><div class="inner"><span>to-selmer-routes</span></div></a></li></ul></div><div class="namespace-docs" id="content"><h1 class="anchor" id="top">adl.to-selmer-routes</h1><div class="doc"><pre class="plaintext">Application Description Language: generate routes for user interface requests.
</pre></div><div class="public anchor" id="var-compose-fetch-auxlist-data"><h3>compose-fetch-auxlist-data</h3><div class="usage"><code>(compose-fetch-auxlist-data auxlist entity application)</code></div><div class="doc"><pre class="plaintext">Compose Clojure code to fetch data to populate this `auxlist` of a form
editing a record of this `entity` within this `application`.</pre></div></div><div class="public anchor" id="var-compose-fetch-record"><h3>compose-fetch-record</h3><div class="usage"><code>(compose-fetch-record e)</code></div><div class="doc"><pre class="plaintext">Compose Clojure code to retrieve a single record of entity `e`.
</pre></div></div><div class="public anchor" id="var-compose-get-menu-options"><h3>compose-get-menu-options</h3><div class="usage"><code>(compose-get-menu-options property application)</code></div><div class="doc"><pre class="plaintext">Compose Clojure code to fetch from the database menu options for this
`property` within this `application`.</pre></div></div><div class="public anchor" id="var-file-header"><h3>file-header</h3><div class="usage"><code>(file-header application)</code></div><div class="doc"><pre class="plaintext">FIXME: write docs</pre></div></div><div class="public anchor" id="var-generate-handler-resolver"><h3>generate-handler-resolver</h3><div class="usage"><code>(generate-handler-resolver application)</code></div><div class="doc"><pre class="plaintext">Dodgy, dodgy, dodgy. Generate code which will look up functions in the
manual and in this namespace. I'm sure someone who really knew what they
were doing could write this more elegantly.</pre></div></div><div class="public anchor" id="var-handler-name"><h3>handler-name</h3><div class="usage"><code>(handler-name f e a m)</code></div><div class="doc"><pre class="plaintext">Generate the name of the appropriate handler function for form `f` of
entity `e` of application `a` for method `m`, where `f`, `e`, and `a`
are expected to be elements and `m` is expected to be one of the keywords
`:put` `:get`.</pre></div></div><div class="public anchor" id="var-make-defroutes"><h3>make-defroutes</h3><div class="usage"><code>(make-defroutes application)</code></div><div class="doc"><pre class="plaintext">Generate a `defroutes` declaration for all routes of all forms, pages and
lists within this `application`.</pre></div></div><div class="public anchor" id="var-make-form-get-handler-content"><h3>make-form-get-handler-content</h3><div class="usage"><code>(make-form-get-handler-content f e a n)</code></div><div class="doc"><pre class="plaintext">Compose Clojure code to form body of an HTTP `GET` handler for the form
`f` of the entity `e` within application `a`. The argument `n`
is not used.</pre></div></div><div class="public anchor" id="var-make-form-post-handler-content"><h3>make-form-post-handler-content</h3><div class="usage"><code>(make-form-post-handler-content f e a n)</code></div><div class="doc"><pre class="plaintext">Generate the body of the post handler for the form `f` of
entity `e` in application `a`. The argument `n` is bound to the name
of the function, but is not currently used.
Literally the only thing the post handler has to do is to
execute the database store operation. Then it can hand off
to the get handler.</pre></div></div><div class="public anchor" id="var-make-get-handler"><h3>make-get-handler</h3><div class="usage"><code>(make-get-handler f e a)</code></div><div class="doc"><pre class="plaintext">Generate a Clojure function to handle HTTP `GET` requests for form, list or
page `f` of entity `e` within application `a`.</pre></div></div><div class="public anchor" id="var-make-handlers"><h3>make-handlers</h3><div class="usage"><code>(make-handlers e application)</code></div><div class="doc"><pre class="plaintext">Generate all the Selmer route handlers for all the forms, lists and pages
of the entity `e` within this `application`.</pre></div></div><div class="public anchor" id="var-make-list-get-handler-content"><h3>make-list-get-handler-content</h3><div class="usage"><code>(make-list-get-handler-content f e a n)</code></div><div class="doc"><pre class="plaintext">Compose Clojure code to form body of an HTTP `GET` handler for the list
`f` of the entity `e` within application `a`. The argument `n` is ignored.</pre></div></div><div class="public anchor" id="var-make-page-get-handler-content"><h3>make-page-get-handler-content</h3><div class="usage"><code>(make-page-get-handler-content f e a n)</code></div><div class="doc"><pre class="plaintext">Compose Clojure code to form body of an HTTP `GET` handler for the page
`f` of the entity `e` within application `a`. The argument `n` is ignored.</pre></div></div><div class="public anchor" id="var-make-post-handler"><h3>make-post-handler</h3><div class="usage"><code>(make-post-handler f e a)</code></div><div class="doc"><pre class="plaintext">Generate an HTTP `POST` handler for the page, form or list `f` of the
entity `e` of application `a`.</pre></div></div><div class="public anchor" id="var-make-route"><h3>make-route</h3><div class="usage"><code>(make-route m n)</code></div><div class="doc"><pre class="plaintext">Make a route for method `m` to request the resource with name `n`.
</pre></div></div><div class="public anchor" id="var-to-selmer-routes"><h3>to-selmer-routes</h3><div class="usage"><code>(to-selmer-routes application)</code></div><div class="doc"><pre class="plaintext">Generate a `/routes/auto.clj` file for this `application`.
</pre></div></div></div></body></html>