

| |||||||
|
You are here: Root > By Topic > Web Development > HTML Macros
YHTML-Template is a an extension of Edi Weitz's HTML-TEMPLATE.
| Web site | http://lisp.ystok.ru/yhtml/html-template.html |
| Mailing list | |
| Version | 0.10.2 - |
| Maturity | Stable |
| OS compatibility | |
| ASDF installable | Yes |
| Official Download | |
| Mirrored Download | |
| Source code repository |
YHTML-Template is a part of YstokHTML collection. It accepts more "Lispy" expressions and provides the following extensions to the original HTML-TEMPLATE code.
TMPL_INCLUDE) accept forms
instead of "old style" attributes.*attributes-are-lisp-forms* special variable was introduced.
Bind or set it to NIL to treating those tags in the compatibility mode.
template-eval was introduced.
It is a simple evaluator akin to the standard eval function except for:
IF WHEN UNLESS AND OR NOT QUOTE.
symbol-value.
TMPL_EVAL tag and create-eval-printer were introduced;
the former should be used instead of the TMPL_VAR tag.
*format-non-strings* has got an additional meaning.
If it equals to T, the result is produced by means of
princ-to-string, i.e. (format nil "~A" ...).*string-modifier*
is applied afterwards.TMPL_ELSE and all ending tags /TMPL_... can
embed an optional text
between the tag name and the closing marker "-->". This text is intended
for readability only and completely ignored by the template parser.
For example:
TMPL_ELIF tag was introduced to allow
a more concise code. In full, now the "if" pattern looks like:
<!-- TMPL_IF condition_1 --> text_1 <!-- TMPL_ELIF condition_2 --> text_2 ... <!-- TMPL_ELSE --> text_else <!-- /TMPL_IF -->
You must be logged to add a note
You must be logged to add a comment