Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the json-template Reference Manual, version 0.1.0, generated automatically by Declt version 4.0 beta 2 "William Riker" on Mon Aug 15 03:45:08 2022 GMT+0.
Next: Systems, Previous: The json-template Reference Manual, Up: The json-template Reference Manual [Contents][Index]
An implementation of JSON Template in Common Lisp.
{.space}
and {.meta-left}
/{.meta-right}
)JSON-TEMPLATE> (defparameter *tmpl* (parse-template-string "
<h1>{title|html}</h1>
{.section people}
<ul>
{.repeated section @}
<li>{name} ({age} years)</li>
{.end}
</ul>
{.or}
<p>No one's registered.</p>
{.end}"))
*TMPL*
JSON-TEMPLATE> (expand-template *tmpl*
'(:title "<Registered People>"
:people ((:name "Nathalie" :age 24)
(:name "Heinrich" :age 28)
(:name "Hans" :age 25))))
"
<h1><Registered People></h1>
<ul>
<li>Nathalie (24 years)</li>
<li>Heinrich (28 years)</li>
<li>Hans (25 years)</li>
</ul>
"
JSON-TEMPLATE> (expand-template *tmpl*
'(:title "<Registered People>"
:people ()))
"
<h1><Registered People></h1>
<p>No one's registered.</p>
"
Next: Files, Previous: Introduction, Up: The json-template Reference Manual [Contents][Index]
The main system appears first, followed by any subsystem dependency.
An implementation of a subset of the JSON Template language.
Matthias Andreas Benkard
Apache License, version 2.0
0.1.0
Next: Packages, Previous: Systems, Up: The json-template Reference Manual [Contents][Index]
Files are sorted by type and then listed depth-first from the systems components trees.
Next: json-template/json-template.lisp, Previous: Lisp, Up: Lisp [Contents][Index]
json-template (system).
Next: json-template/formatters.lisp, Previous: json-template/json-template.asd, Up: Lisp [Contents][Index]
json-template (system).
Previous: json-template/json-template.lisp, Up: Lisp [Contents][Index]
json-template.lisp (file).
json-template (system).
*template-formatters* (special variable).
Next: Definitions, Previous: Files, Up: The json-template Reference Manual [Contents][Index]
Packages are listed by definition order.
common-lisp.
Next: Indexes, Previous: Packages, Up: The json-template Reference Manual [Contents][Index]
Definitions are sorted by export status, category, package, and then by lexicographic order.
Next: Internals, Previous: Definitions, Up: Definitions [Contents][Index]
Next: Ordinary functions, Previous: Public Interface, Up: Public Interface [Contents][Index]
Previous: Special variables, Up: Public Interface [Contents][Index]
Previous: Public Interface, Up: Definitions [Contents][Index]
Next: Ordinary functions, Previous: Internals, Up: Internals [Contents][Index]
Next: Generic functions, Previous: Constants, Up: Internals [Contents][Index]
Next: Classes, Previous: Ordinary functions, Up: Internals [Contents][Index]
Previous: Definitions, Up: The json-template Reference Manual [Contents][Index]
Jump to: | (
E F G L M P T |
---|
Jump to: | (
E F G L M P T |
---|
Next: Data types, Previous: Functions, Up: Indexes [Contents][Index]
Jump to: | *
+
C S T |
---|
Jump to: | *
+
C S T |
---|
Jump to: | C F J P S T |
---|
Jump to: | C F J P S T |
---|