The djula Reference Manual
Table of Contents
The djula Reference Manual
This is the djula Reference Manual, version 0.2,
generated automatically by Declt version 3.0 "Montgomery Scott"
on Tue Dec 22 13:19:36 2020 GMT+0.
1 Introduction
Djula

Djula is a port of Python's Django template engine to Common Lisp.
Nutshell
Here a small example of a template::
{% extends "base.html" %}
{% block title %}Memberlist{% endblock %}
{% block content %}
<ul>
{% for user in users %}
<li><a href="{{ user.url }}">{{ user.username }}</a></li>
{% endfor %}
</ul>
{% endblock %}
Philosophy
Application logic is for the controller but don't try to make the life
for the template designer too hard by giving him too few functionality.
For more information visit the new Djula webpage and documentation.
2 Systems
The main system appears first, followed by any subsystem dependency.
2.1 djula
- Maintainers
Eric Sessoms <eric@nubgames.com>
Mariano Montone <marianomontone@gmail.com>
- Author
Nick Allen <nallen05@gmail.com>
- License
MIT
- Description
An implementation of Django templates for Common Lisp.
- Version
0.2
- Dependencies
- access
- alexandria
- anaphora
- babel
- cl-ppcre
- split-sequence
- local-time
- closer-mop
- trivial-backtrace
- cl-slice
- cl-locale
- gettext
- parser-combinators
- iterate
- Source
djula.asd (file)
- Component
src (module)
3 Modules
Modules are listed depth-first from the system components tree.
3.1 djula/src
- Parent
djula (system)
- Location
src/
- Components
-
4 Files
Files are sorted by type and then listed depth-first from the systems
components trees.
4.1 Lisp
4.1.1 djula.asd
- Location
djula.asd
- Systems
djula (system)
4.1.2 djula/src/compiler.lisp
- Dependencies
-
- Parent
src (module)
- Location
src/compiler.lisp
- Exported Definitions
-
- Internal Definitions
-
4.1.3 djula/src/conditions.lisp
- Dependency
specials.lisp (file)
- Parent
src (module)
- Location
src/conditions.lisp
- Internal Definitions
-
4.1.4 djula/src/filters.lisp
- Dependency
pipeline.lisp (file)
- Parent
src (module)
- Location
src/filters.lisp
- Exported Definitions
-
- Internal Definitions
apply-filters (function)
4.1.5 djula/src/lexer.lisp
- Dependencies
-
- Parent
src (module)
- Location
src/lexer.lisp
- Exported Definitions
verbatim (function)
- Internal Definitions
-
4.1.6 djula/src/locale.lisp
- Dependency
lexer.lisp (file)
- Parent
src (module)
- Location
src/locale.lisp
- Exported Definitions
-
- Internal Definitions
-
4.1.7 djula/src/packages.lisp
- Parent
src (module)
- Location
src/packages.lisp
- Packages
-
4.1.8 djula/src/parser.lisp
- Dependency
pipeline.lisp (file)
- Parent
src (module)
- Location
src/parser.lisp
- Exported Definitions
-
- Internal Definitions
-
4.1.9 djula/src/pipeline.lisp
- Dependency
conditions.lisp (file)
- Parent
src (module)
- Location
src/pipeline.lisp
- Exported Definitions
-
- Internal Definitions
-
4.1.10 djula/src/specials.lisp
- Dependency
packages.lisp (file)
- Parent
src (module)
- Location
src/specials.lisp
- Exported Definitions
-
- Internal Definitions
-
4.1.11 djula/src/tags.lisp
- Dependencies
-
- Parent
src (module)
- Location
src/tags.lisp
- Exported Definitions
-
- Internal Definitions
-
4.1.12 djula/src/tag.lisp
- Dependency
pipeline.lisp (file)
- Parent
src (module)
- Location
src/tag.lisp
- Exported Definitions
-
- Internal Definitions
-
4.1.13 djula/src/template-store.lisp
- Dependency
specials.lisp (file)
- Parent
src (module)
- Location
src/template-store.lisp
- Exported Definitions
-
- Internal Definitions
-
4.1.14 djula/src/translation.lisp
- Dependencies
-
- Parent
src (module)
- Location
src/translation.lisp
- Exported Definitions
-
- Internal Definitions
-
4.1.15 djula/src/util.lisp
- Dependency
packages.lisp (file)
- Parent
src (module)
- Location
src/util.lisp
- Exported Definitions
-
- Internal Definitions
-
4.1.16 djula/src/variables.lisp
- Dependencies
-
- Parent
src (module)
- Location
src/variables.lisp
- Exported Definitions
-
- Internal Definitions
-
5 Packages
Packages are listed by definition order.
5.1 djula.unparsed-tag-processors
This package contains the unparsed tag processors.
- Source
packages.lisp (file)
- Exported Definitions
-
5.2 djula.filters
This package contains the djula filters. Filters are take as
a first argument a string and return a string.
- Source
packages.lisp (file)
- Exported Definitions
-
5.3 djula.token-compilers
This package contains the token compilers.
- Source
packages.lisp (file)
- Exported Definitions
-
5.4 djula.tag-processors
This package contains the tag processors.
- Source
packages.lisp (file)
- Exported Definitions
-
5.5 djula.locale
This package contains code to generate cl-locale dictionary files.
- Source
packages.lisp (file)
- Use List
common-lisp
- Exported Definitions
-
- Internal Definitions
-
5.6 djula
- Source
packages.lisp (file)
- Use List
- parser-combinators
- common-lisp
- anaphora
- alexandria
- iterate
- Exported Definitions
-
- Internal Definitions
-
5.7 djula.tag-compilers
This package contains the tag compilers.
- Source
packages.lisp (file)
- Exported Definitions
-
5.8 djula.token-processors
Contains the token processors
- Source
packages.lisp (file)
- Exported Definitions
-
6 Definitions
Definitions are sorted by export status, category, package, and then by
lexicographic order.
6.1 Exported definitions
6.1.1 Special variables
- Special Variable: *allow-include-roots*
-
- Package
djula
- Source
specials.lisp (file)
- Special Variable: *auto-escape*
-
- Package
djula
- Source
variables.lisp (file)
- Special Variable: *catch-template-errors-p*
-
When enabled, caught errors during the rendering of the template are written to the output instead of being handled by the lisp listener
- Package
djula
- Source
specials.lisp (file)
- Special Variable: *current-compiler*
-
- Package
djula
- Source
compiler.lisp (file)
- Special Variable: *current-language*
-
- Package
djula
- Source
specials.lisp (file)
- Special Variable: *current-store*
-
The currently in-use template store. Defaults to a FILE-STORE.
- Package
djula
- Source
template-store.lisp (file)
- Special Variable: *default-language*
-
- Package
djula
- Source
specials.lisp (file)
- Special Variable: *default-template-arguments*
-
List of arguments available for all templates. Add arguments to this list if you want them to be available in every template.
This is a plist, so use getf to add arguments, like: (setf (getf djula:*default-template-arguments* :foo) ’some-value)
- Package
djula
- Source
specials.lisp (file)
- Special Variable: *djula-emptyp*
-
Change this to customize how djula decides if some value is empty or not
- Package
djula
- Source
tags.lisp (file)
- Special Variable: *djula-execute-package*
-
- Package
djula
- Source
specials.lisp (file)
- Special Variable: *elision-string*
-
The string to be used by ‘truncatechars’ at the end of truncated strings.
- Package
djula
- Source
specials.lisp (file)
- Special Variable: *error-template*
-
The error template used by ‘render-error-template’.
- Package
djula
- Source
specials.lisp (file)
- Special Variable: *fancy-debug-p*
-
When enabled, displays fancy html based debugging information for the {% debug %} tag
- Package
djula
- Source
specials.lisp (file)
- Special Variable: *fancy-error-template-p*
-
When enabled, show a fancy template when an error ocurrs
- Package
djula
- Source
specials.lisp (file)
- Special Variable: *translation-backend*
-
The translation backend. One of :locale, :gettext
- Package
djula
- Source
translation.lisp (file)
- Special Variable: *verbose-errors-p*
-
When enabled, errors are displayed more verbosely. Good for debugging
- Package
djula
- Source
specials.lisp (file)
6.1.2 Macros
- Macro: def-filter NAME ARGS &body BODY
-
- Package
djula
- Source
pipeline.lisp (file)
- Macro: def-tag-compiler NAME ARGS &body BODY
-
- Package
djula
- Source
pipeline.lisp (file)
6.1.3 Functions
- Function: add IT N
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: add-template-directory DIRECTORY &optional TEMPLATE-STORE
-
Adds DIRECTORY to the search path of the TEMPLATE-STORE
- Package
djula
- Source
template-store.lisp (file)
- Function: addslashes IT
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: almost-parsed-ifequal &rest ARG-LIST0
-
- Package
djula.token-processors
- Source
tags.lisp (file)
- Function: almost-parsed-ifnotequal &rest ARG-LIST0
-
- Package
djula.token-processors
- Source
tags.lisp (file)
- Function: autoescape &rest ARG-LIST0
-
- Package
djula.tag-processors
- Source
tags.lisp (file)
- Function: block &rest ARG-LIST0
-
- Package
djula.tag-processors
- Source
tags.lisp (file)
- Function: capfirst IT
-
- Package
djula.filters
- Source
filters.lisp (file)
-
- Package
djula.tag-processors
- Source
tags.lisp (file)
-
:COMMENT tokens are removed by PROCESS-TOKENS
- Package
djula.token-processors
- Source
parser.lisp (file)
-
- Package
djula.token-processors
- Source
tags.lisp (file)
- Function: compile-template* NAME
-
Compiles template NAME with compiler in *CURRENT-COMPILER*
- Package
djula
- Source
compiler.lisp (file)
- Function: cut IT CHARSTRING
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: cycle &rest ARG-LIST0
-
- Package
djula.tag-compilers
- Source
tags.lisp (file)
- Function: date IT &optional FORMAT
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: datetime IT &optional FORMAT
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: debug &rest ARG-LIST0
-
- Package
djula.tag-compilers
- Source
tags.lisp (file)
- Function: default IT DEFAULT
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: directory-translate-strings DIR &key RECURSE
-
given a directory of djula html template files find all the strings to be translated
- Package
djula.locale
- Source
locale.lisp (file)
- Function: divisibleby IT NUMBER
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: emit-js &rest ARG-LIST0
-
- Package
djula.tag-compilers
- Source
tags.lisp (file)
- Function: endautoescape &rest ARG-LIST18
-
- Package
djula.tag-compilers
- Source
tags.lisp (file)
- Function: endblock &rest ARG-LIST18
-
- Package
djula.tag-compilers
- Source
tags.lisp (file)
-
- Package
djula.tag-compilers
- Source
tags.lisp (file)
- Function: endfilter &rest ARG-LIST18
-
- Package
djula.tag-compilers
- Source
tags.lisp (file)
- Function: endfor &rest ARG-LIST18
-
- Package
djula.tag-compilers
- Source
tags.lisp (file)
- Function: endif &rest ARG-LIST18
-
- Package
djula.tag-compilers
- Source
tags.lisp (file)
- Function: endifchanged &rest ARG-LIST18
-
- Package
djula.tag-compilers
- Source
tags.lisp (file)
- Function: endifequal &rest ARG-LIST18
-
- Package
djula.tag-compilers
- Source
tags.lisp (file)
- Function: endifnotequal &rest ARG-LIST18
-
- Package
djula.tag-compilers
- Source
tags.lisp (file)
- Function: endjs-script &rest ARG-LIST18
-
- Package
djula.tag-compilers
- Source
tags.lisp (file)
- Function: escape IT
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: extends &rest ARG-LIST0
-
- Package
djula.tag-processors
- Source
tags.lisp (file)
- Function: fetch-template* KEY
-
Return the text of a template fetched from the *CURRENT-STORE*.
- Package
djula
- Source
template-store.lisp (file)
- Function: file-template-translate-strings FILE
-
given a djula html template file, find all the strings to be translated
- Package
djula.locale
- Source
locale.lisp (file)
- Function: filter &rest ARG-LIST0
-
- Package
djula.unparsed-tag-processors
- Source
tags.lisp (file)
- Function: find-template* NAME &optional ERROR-P
-
- Package
djula
- Source
template-store.lisp (file)
- Function: first IT
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: firstof &rest ARG-LIST0
-
- Package
djula.tag-compilers
- Source
tags.lisp (file)
- Function: for &rest ARG-LIST0
-
- Package
djula.tag-processors
- Source
tags.lisp (file)
- Function: force-escape IT
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: format IT FMT
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: if &rest ARG-LIST0
-
- Package
djula.tag-processors
- Source
tags.lisp (file)
- Function: ifchanged &rest ARG-LIST0
-
- Package
djula.tag-processors
- Source
tags.lisp (file)
- Function: ifequal &rest ARG-LIST0
-
- Package
djula.unparsed-tag-processors
- Source
tags.lisp (file)
- Function: ifnotequal &rest ARG-LIST0
-
- Package
djula.unparsed-tag-processors
- Source
tags.lisp (file)
- Function: include &rest ARG-LIST0
-
when compiled, :INCLUDE tags first compile the template pointed to by ‘PATH’ then
they compile into a function that simply calls this function with *TEMPLATE-ARGUMENTS*
‘PARAMETERS’ should have the form (:param1 value1 :param2 value2 ...). If given, they
are prepended to *TEMPLATE-ARGUMENTS*
- Package
djula.tag-compilers
- Source
tags.lisp (file)
- Function: join IT SEP
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: js &rest ARG-LIST0
-
- Package
djula.unparsed-tag-processors
- Source
tags.lisp (file)
- Function: js-script &rest ARG-LIST0
-
- Package
djula.tag-processors
- Source
tags.lisp (file)
- Function: last IT
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: length IT
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: length_is IT LENGTH
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: linebreaks IT
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: linebreaksbr IT
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: lisp &rest ARG-LIST0
-
- Package
djula.unparsed-tag-processors
- Source
tags.lisp (file)
- Function: lisp IT &optional LISP-STRING
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: locale-list MESSAGE-FILE TRANSLATE-STRINGS
-
return an augmented dictionary of a cl-locale message file with the translate strings.
Does not update the file.
- Package
djula.locale
- Source
locale.lisp (file)
- Function: lower IT
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: make_list IT
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: parsed-autoescape &rest ARG-LIST0
-
- Package
djula.token-compilers
- Source
tags.lisp (file)
- Function: parsed-block &rest ARG-LIST0
-
- Package
djula.token-compilers
- Source
tags.lisp (file)
- Function: parsed-filter &rest ARG-LIST0
-
- Package
djula.token-compilers
- Source
tags.lisp (file)
- Function: parsed-for &rest ARG-LIST0
-
- Package
djula.token-compilers
- Source
tags.lisp (file)
- Function: parsed-if &rest ARG-LIST0
-
:PARSED-IF tags are compiled into a function that executes the {% if %} clause
- Package
djula.token-compilers
- Source
tags.lisp (file)
- Function: parsed-ifchanged &rest ARG-LIST0
-
- Package
djula.token-compilers
- Source
tags.lisp (file)
- Function: parsed-ifequal &rest ARG-LIST0
-
- Package
djula.token-compilers
- Source
tags.lisp (file)
- Function: parsed-js &rest ARG-LIST0
-
- Package
djula.token-compilers
- Source
tags.lisp (file)
- Function: parsed-js-script &rest ARG-LIST0
-
- Package
djula.token-compilers
- Source
tags.lisp (file)
- Function: parsed-lisp &rest ARG-LIST0
-
- Package
djula.token-compilers
- Source
tags.lisp (file)
- Function: parsed-set &rest ARG-LIST0
-
- Package
djula.token-compilers
- Source
tags.lisp (file)
- Function: render-template* TEMPLATE &optional STREAM &rest *TEMPLATE-ARGUMENTS*
-
Render TEMPLATE into STREAM passing *TEMPLATE-ARGUMENTS*
- Package
djula
- Source
compiler.lisp (file)
- Function: replace IT REGEX
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: rest LIST
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: reverse IT
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: safe IT
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: scan IT REGEX
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: semi-parsed-filter &rest ARG-LIST0
-
- Package
djula.tag-processors
- Source
tags.lisp (file)
- Function: semi-parsed-if &rest ARG-LIST0
-
:SEMI-PARSED-IF tags are parsed into :PARSED-IF tags. a :PARSED-IF tag looks more
ike a traditional IF statement [a test, an "if" branch, and an "else" branch], so
:SEMI-PARSED-IF has to look for the :ELSE token to split up ‘CLAUSE’
- Package
djula.token-processors
- Source
tags.lisp (file)
- Function: semi-parsed-ifequal &rest ARG-LIST0
-
- Package
djula.tag-processors
- Source
tags.lisp (file)
- Function: semi-parsed-ifnotequal &rest ARG-LIST0
-
- Package
djula.tag-processors
- Source
tags.lisp (file)
- Function: semi-parsed-js-script &rest ARG-LIST0
-
- Package
djula.token-processors
- Source
tags.lisp (file)
- Function: set &rest ARG-LIST0
-
- Package
djula.unparsed-tag-processors
- Source
tags.lisp (file)
- Function: set-language &rest ARG-LIST0
-
:SET-LANGUAGE tags are compiled into a function that set *CURRENT-LANGUAGE* to the
keyword version of ‘NAME’ [or NIL if ‘NAME’ is not supplied]
- Package
djula.tag-compilers
- Source
tags.lisp (file)
- Function: set-package &rest ARG-LIST0
-
:SET-PACKAGE tags are compiled into a function that set *DJULA-EXECUTE-PACKAGE*
to the the package value of find package on the keyword ‘PACKAGE-NAME’ or the
package ‘common-lisp-user’ if the package for ‘PACKAGE-NAME’ is not found. This
is useful to determine the package in which :LISP tags are executed
- Package
djula.tag-compilers
- Source
tags.lisp (file)
- Function: show-language &rest ARG-LIST0
-
:SHOW-LANGUAGE tags are compiled into a function that just shows the values of
*CURRENT-LANGUAGE* or *DEFAULT-LANGUAGE* if there is no current language
- Package
djula.tag-compilers
- Source
tags.lisp (file)
- Function: slice IT &rest SLICES
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: sort IT &optional PREDICATE KEY
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: ssi &rest ARG-LIST0
-
if ‘PATH’ lives in a folder reckognized by *ALLOW-INCLUDE-ROOTS*, then :SSI tags
compile into a function that return the contents of the file pointed to
by the template-path ‘PATH’. If ‘PARSE’ is T then the function renders ‘PATH’ as a
template.
- Package
djula.tag-compilers
- Source
tags.lisp (file)
- Function: string &rest ARG-LIST0
-
:STRING tokens compile into a function that simply returns the string
- Package
djula.token-compilers
- Source
compiler.lisp (file)
- Function: string &rest ARG-LIST0
-
adjacent :STRING tokens are concatenated together by PROCESS-TOKENS as a small optimization
- Package
djula.token-processors
- Source
parser.lisp (file)
- Function: super &rest ARG-LIST0
-
- Package
djula.tag-compilers
- Source
tags.lisp (file)
- Function: tag &rest ARG-LIST0
-
- Package
djula.token-compilers
- Source
tag.lisp (file)
- Function: tag &rest ARG-LIST0
-
:TAG tokens are sometimes parsed into some other tokens by PROCESS-TOKENS
- Package
djula.token-processors
- Source
tag.lisp (file)
- Function: templatetag &rest ARG-LIST0
-
:SHOW-FILE tags compile into a function that return the html-escaped contents of
the file pointed to by the template-path ‘PATH’
- Package
djula.tag-compilers
- Source
tags.lisp (file)
- Function: time IT &optional FORMAT
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: trans &rest ARG-LIST0
-
- Package
djula.unparsed-tag-processors
- Source
translation.lisp (file)
- Function: trans IT &rest ARGS
-
- Package
djula.filters
- Source
translation.lisp (file)
- Function: translate STRING &optional ARGS LANGUAGE BACKEND
-
- Package
djula
- Source
translation.lisp (file)
- Function: translation &rest ARG-LIST0
-
- Package
djula.token-compilers
- Source
translation.lisp (file)
- Function: truncatechars IT N
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: unparsed-tag &rest ARG-LIST0
-
- Package
djula.token-processors
- Source
tag.lisp (file)
- Function: unparsed-translation &rest ARG-LIST0
-
- Package
djula.token-processors
- Source
translation.lisp (file)
- Function: unparsed-variable &rest ARG-LIST0
-
:PARSED-VARIABLE tokens are parsed into :VARIABLE tokens by PROCESS-TOKENS
- Package
djula.token-processors
- Source
variables.lisp (file)
- Function: update-caveman-project PROJECT
-
update the cl-locale dictionary files with the djula translate strings.
Project should coincide with project (asdf) name of the caveman project.
This assumes the project uses the standard caveman2 directory structure.
It does not depend on any caveman source code and
caveman or your project need not be loaded.
- Package
djula.locale
- Source
locale.lisp (file)
- Function: update-locale-list MESSAGE-FILE TRANSLATE-STRINGS
-
update a cl-locale message file with the list of translate strings
- Package
djula.locale
- Source
locale.lisp (file)
- Function: update-project TEMPLATE-DIR LOCALE-DIR
-
update a djula project informing the template directory and the directory
of subdirectories holding the cl-locale dictionary files
- Package
djula.locale
- Source
locale.lisp (file)
- Function: upper IT
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: url-encode STRING
-
URL-encodes a string using the external format EXTERNAL-FORMAT.
- Package
djula
- Source
util.lisp (file)
- Function: url-encode-path PATH
-
- Package
djula
- Source
util.lisp (file)
- Function: urlencode IT
-
- Package
djula.filters
- Source
filters.lisp (file)
- Function: variable &rest ARG-LIST0
-
- Package
djula.token-compilers
- Source
variables.lisp (file)
- Function: verbatim &rest ARG-LIST0
-
- Package
djula.token-compilers
- Source
lexer.lisp (file)
- Function: with IT REPLACE
-
- Package
djula.filters
- Source
filters.lisp (file)
6.1.4 Generic functions
- Generic Function: compile-template COMPILER NAME &optional ERROR-P
-
Provides a hook to customize template compilation.
- Package
djula
- Source
compiler.lisp (file)
- Methods
- Method: compile-template (COMPILER toplevel-compiler) NAME &optional ERROR-P
-
- Method: compile-template (COMPILER compiler) NAME &optional ERROR-P
-
- Generic Function: fetch-template STORE KEY
-
Return the text of the template identified by the given key.
- Package
djula
- Source
template-store.lisp (file)
- Methods
- Method: fetch-template (STORE file-store) NAME
-
- Generic Function: find-template STORE NAME &optional ERROR-P
-
Return a hashable key that uniquely identifies the named template.
- Package
djula
- Source
template-store.lisp (file)
- Methods
- Method: find-template (STORE file-store) NAME &optional ERROR-P
-
Algorithm that finds a template in a file-store.
- Generic Function: fragment-compiler OBJECT
-
- Package
djula
- Methods
- Method: fragment-compiler (TOPLEVEL-COMPILER toplevel-compiler)
-
automatically generated reader method
- Source
compiler.lisp (file)
- Generic Function: template-print-object OBJECT
-
Print an object in a template. Customize this function to implement custom printers for your objects.
- Package
djula
- Source
util.lisp (file)
- Methods
- Method: template-print-object (TIMESTAMP timestamp)
-
- Method: template-print-object (TRUE (eql t))
-
- Method: template-print-object OBJECT
-
6.1.5 Classes
- Class: compiler ()
-
- Package
djula
- Source
compiler.lisp (file)
- Direct superclasses
standard-object (class)
- Direct subclasses
toplevel-compiler (class)
- Direct methods
compile-template (method)
- Class: file-store ()
-
Searches for template files on disk according to the given search path.
- Package
djula
- Source
template-store.lisp (file)
- Direct superclasses
standard-object (class)
- Direct methods
-
- Direct slots
- Slot: current-path
-
The location of the most-recently fetched template.
- Type
(or null string pathname)
- Slot: search-path
-
User-provided list of template locations.
- Type
list
- Initargs
:search-path
- Readers
search-path (generic function)
- Writers
(setf search-path) (generic function)
- Class: toplevel-compiler ()
-
- Package
djula
- Source
compiler.lisp (file)
- Direct superclasses
compiler (class)
- Direct methods
-
- Direct slots
- Slot: fragment-compiler
-
- Initargs
:fragment-compiler
- Initform
(make-instance (quote djula:compiler))
- Readers
fragment-compiler (generic function)
6.2 Internal definitions
6.2.1 Constants
- Constant: +whitespace+
-
Whitespace characters.
- Package
djula.locale
- Source
locale.lisp (file)
6.2.2 Special variables
- Special Variable: *accumulated-javascript-strings*
-
- Package
djula
- Source
specials.lisp (file)
- Special Variable: *block-alist*
-
- Package
djula
- Source
specials.lisp (file)
- Special Variable: *current-block*
-
- Package
djula
- Source
specials.lisp (file)
- Special Variable: *current-template*
-
- Package
djula
- Source
specials.lisp (file)
- Special Variable: *eval-lisp-tags*
-
- Package
djula
- Source
specials.lisp (file)
- Special Variable: *gettext-domain*
-
- Package
djula
- Source
translation.lisp (file)
- Special Variable: *linked-templates*
-
- Package
djula
- Source
specials.lisp (file)
- Special Variable: *template-arguments*
-
- Package
djula
- Source
specials.lisp (file)
- Special Variable: *untranslated-messages*
-
- Package
djula
- Source
translation.lisp (file)
- Special Variable: *warn-on-untranslated-messages*
-
- Package
djula
- Source
translation.lisp (file)
6.2.3 Macros
- Macro: accum ACCFN &body BODY
-
- Package
djula
- Source
util.lisp (file)
- Macro: def-delimited-tag STARTTAG ENDTAG DELIMITED-NAME
-
- Package
djula
- Source
pipeline.lisp (file)
- Macro: def-tag-processor NAME ARGS REST-VAR &body BODY
-
- Package
djula
- Source
pipeline.lisp (file)
- Macro: def-token-compiler NAME ARGS &body BODY
-
- Package
djula
- Source
pipeline.lisp (file)
- Macro: def-token-processor NAME ARGS REST-VAR &body BODY
-
- Package
djula
- Source
pipeline.lisp (file)
- Macro: def-unparsed-tag-processor NAME ARGS REST-VAR &body BODY
-
- Package
djula
- Source
pipeline.lisp (file)
- Macro: with-file-handler (STRING-VAR TEMPLATE-PATH) &body BODY
-
evaluates ‘BODY’ with ‘STRING-VAR’ bound to a string representing the contents of
the file pointed to be the template-path ‘TEMPLATE-PATH’, returning it’s results.
if there is an error while binding ‘STRING-VAR’ and *CATCH-TEMPLATE-ERRORS-P* is T then
it returns a function that is suitable output for the body of a DEF-TOKEN-COMPILER
form that returns some debugging info.
- Package
djula
- Source
tags.lisp (file)
- Macro: with-template-error RECOVERY-FORM &body BODY
-
- Package
djula
- Source
conditions.lisp (file)
6.2.4 Functions
- Function: alter-pathname PATHNAME &rest OPTIONS
-
alter pathname as specified in the options
- Package
djula.locale
- Source
locale.lisp (file)
- Function: and-bterm BOOLEXP
-
- Package
djula
- Source
tags.lisp (file)
- Function: apply-filters VALUE FILTERS
-
- Package
djula
- Source
filters.lisp (file)
- Function: apply-keys/indexes THING KEYS/INDEXES
-
- Package
djula
- Source
variables.lisp (file)
- Function: backup-file FILE
-
backup the file by copying it from filename.ext to filename-n.ext
where n is the next available number.
- Package
djula.locale
- Source
locale.lisp (file)
- Function: bliteral ()
-
- Package
djula
- Source
tags.lisp (file)
- Function: boolean-comparison ()
-
- Package
djula
- Source
tags.lisp (file)
- Function: boolexp-factor BOOLEXP
-
- Package
djula
- Source
tags.lisp (file)
- Function: boolexp-parser ()
-
- Package
djula
- Source
tags.lisp (file)
- Function: bterm BOOLEXP
-
- Package
djula
- Source
tags.lisp (file)
- Function: comparison-operator-parser ()
-
- Package
djula
- Source
tags.lisp (file)
- Function: compile-boolexp BEXP
-
- Package
djula
- Source
tags.lisp (file)
- Function: compile-logical-statement STATEMENT
-
takes a "logical statement" like you would give {% if %} that has been parsed
into a list of keywords [eg: ’(:not :foo) or ’(:foo :and :baz) or
‘(:foo.bar :or :list.1)] and turns them into a thunk predicate for dispatching the
conditional branching of the {% if %} tag. when called, the function returns two values:
1. the value returned by resolving the phrase
2. an error message string if something went wrong [ie, an invalid variable].
[note: if return value 2 is present, then its probably not safe to consider return
value 1 useful]
- Package
djula
- Source
tags.lisp (file)
- Function: compile-string STRING
-
- Package
djula
- Source
compiler.lisp (file)
- Function: compile-token TOKEN
-
- Package
djula
- Source
compiler.lisp (file)
- Function: djula-emptyp VAL
-
The default truth decider function for if expressions.
This is Django documentation for if expressions:
The {% if %} tag evaluates a variable, and if that variable is “true” (i.e. exists, is not empty, and is not a false boolean value)
- Package
djula
- Source
tags.lisp (file)
- Function: escape-for-html STRING
-
Escapes the characters #\<, #\>, #\’, #\", and #\& for HTML output.
- Package
djula
- Source
util.lisp (file)
- Function: escape-string-split CHAR STRING &optional ESCAPE QUOTES
-
- Package
djula
- Source
variables.lisp (file)
- Function: find-end-tag TAG-NAME TOKENS
-
returns NIL if a :TAG token with the name ‘TAG-NAME’ can’t be found in ‘TOKENS’.
Otherwise returns three values:
1. a list of all the tokens up to that token
2. a list of all tokens after that token
3. T, indicating that ‘TAG-NAME’ was found
- Package
djula
- Source
tag.lisp (file)
- Function: find-filter NAME
-
Return the filter by the name of NAME.
- Package
djula
- Source
pipeline.lisp (file)
- Function: find-tag-compiler NAME
-
Return the tag compiler by the name of NAME.
- Package
djula
- Source
pipeline.lisp (file)
- Function: find-tag-processor NAME
-
Return the tag processor by the name of NAME.
- Package
djula
- Source
pipeline.lisp (file)
- Function: find-token-compiler NAME
-
Return the token processor by the name of NAME.
- Package
djula
- Source
pipeline.lisp (file)
- Function: find-token-processor NAME
-
Return the token processor by the name of NAME.
- Package
djula
- Source
pipeline.lisp (file)
- Function: find-unparsed-tag-processor TAG-NAME
-
Return the unparsed tag processor by the name of TAG-NAME.
- Package
djula
- Source
pipeline.lisp (file)
- Function: format-translation STRING &rest ARGS
-
- Package
djula
- Source
translation.lisp (file)
- Function: get-closing-delimiter TYPE
-
Return the string that closes the corresponding token TYPE.
- Package
djula
- Source
lexer.lisp (file)
- Function: get-variable NAME
-
takes a variable ‘NAME’ and returns:
1. the value of ‘NAME’
2. any error string generated by the lookup (if there is an error string then the
lookup was unsuccessful)
- Package
djula
- Source
variables.lisp (file)
- Function: in-list PARSER
-
- Package
djula
- Source
tags.lisp (file)
- Function: integer-or-keyword STRING
-
If the STRING is an integer return an integer, otherwise return STRING as a
keyword.
- Package
djula
- Source
variables.lisp (file)
- Function: iterable-list ITERABLE
-
- Package
djula
- Source
tags.lisp (file)
- Function: join SEPARATOR LIST
-
Join the strings in LIST, using SEPARATOR in between the elements.
Similar to Python’s str.join
- Package
djula
- Source
util.lisp (file)
- Function: next-tag STRING START
-
Return the position of the start of next tag in STRING starting from START.
- Package
djula
- Source
lexer.lisp (file)
- Function: not-bfactor BOOLEXP
-
- Package
djula
- Source
tags.lisp (file)
- Function: or-bterm BOOLEXP
-
- Package
djula
- Source
tags.lisp (file)
- Function: parse-filter-string STRING
-
- Package
djula
- Source
variables.lisp (file)
- Function: parse-rest-of-tag STRING START
-
- Package
djula
- Source
tag.lisp (file)
- Function: parse-tag STRING CURRENT-POSITION
-
Return the lexer token and the index where the tag ended.
- Package
djula
- Source
lexer.lisp (file)
- Function: parse-template-string STRING
-
- Package
djula.locale
- Source
locale.lisp (file)
- Function: parse-template-string TEMPLATE
-
Transform the TEMPLATE into a list of lexer tokens
- Package
djula
- Source
lexer.lisp (file)
- Function: parse-variable-clause UNPARSED-STRING
-
- Package
djula
- Source
variables.lisp (file)
- Function: parse-variable-phrase STRING
-
- Package
djula
- Source
variables.lisp (file)
- Function: print-debugging-information OUT
-
- Package
djula
- Source
tags.lisp (file)
- Function: print-fancy-debugging-information STREAM
-
- Package
djula
- Source
tags.lisp (file)
- Function: process-ifequal-args UNPARSED-STRING
-
- Package
djula
- Source
tags.lisp (file)
- Function: process-token TOKEN REST-TOKEN-LIST
-
- Package
djula
- Source
parser.lisp (file)
- Function: process-tokens TOKENS
-
- Package
djula
- Source
parser.lisp (file)
- Function: remove-first ITEM SEQUENCE &key TEST KEY
-
Removes the first ocurrence of item in sequence
- Package
djula
- Source
tags.lisp (file)
- Function: render-error-template ERROR BACKTRACE &optional TEMPLATE STREAM
-
Render the *ERROR-TEMPLATE* with the ERROR, the BACKTRACE and the TEMPLATE
where the error ocurred.
- Package
djula
- Source
conditions.lisp (file)
- Function: resolve-plist PLIST
-
- Package
djula
- Source
translation.lisp (file)
- Function: resolve-variable-phrase LIST
-
takes a list starting wise a variable and ending with 0 or more keys or indexes [this
is a direct translation from the dot (.) syntax] and returns two values:
1. the result [looking up the var and applying index/keys]
2. an error string if something went wrond [note: if there is an error string then
the result probably shouldn’t be considered useful.
- Package
djula
- Source
variables.lisp (file)
- Function: semi-parse-tag STRING
-
- Package
djula
- Source
tag.lisp (file)
- Function: slurp PATHNAME
-
- Package
djula
- Source
template-store.lisp (file)
- Function: split-if-clause CLAUSE-TOKENS
-
returns two values:
1. all clause tokens that appear _before_ the first :ELSE token
2. all clause tokens that appear _after_ the first :ELSE token
- Package
djula
- Source
tags.lisp (file)
- Function: string-string-p S
-
test if s is a string that contains a string representation
- Package
djula.locale
- Source
locale.lisp (file)
- Function: string-translate-strings STRING
-
given a djula html template string, find all the substrings to be translated
- Package
djula.locale
- Source
locale.lisp (file)
- Function: template-error MSG &rest ARGS
-
- Package
djula
- Source
conditions.lisp (file)
- Function: template-error* ERROR MSG &rest ARGS
-
- Package
djula
- Source
conditions.lisp (file)
- Function: template-error-string FMT &rest ARGS
-
- Package
djula
- Source
conditions.lisp (file)
- Function: template-error-string* ERROR FMT &rest ARGS
-
- Package
djula
- Source
conditions.lisp (file)
- Function: token-type CHAR
-
Return the token-type for CHAR.
- Package
djula
- Source
lexer.lisp (file)
- Function: transform TRANSFORM
-
Parser: transform and return the result, when the transformation applies (not null)
- Package
djula
- Source
tags.lisp (file)
- Function: trim-whitespace STRING
-
STRING without whitespace at ends.
- Package
djula.locale
- Source
locale.lisp (file)
- Function: truncate-characters STRING MAX-LENGTH &optional ELISION-STRING
-
If the STRING is larger than MAX-LENGTH, truncate it and append the
ELISION-STRING so that the total length is MAX-LENGTH. Otherwise return the
STRING unmodified. If the truncation is impossible to accomplish, return nil.
- Package
djula
- Source
util.lisp (file)
6.2.5 Generic functions
- Generic Function: backend-translate BACKEND STRING LANGUAGE &rest ARGS
-
- Package
djula
- Source
translation.lisp (file)
- Methods
- Method: backend-translate (BACKEND (eql gettext)) STRING LANGUAGE &rest ARGS
-
- Method: backend-translate (BACKEND (eql locale)) STRING LANGUAGE &rest ARGS
-
- Method: backend-translate (BACKEND null) STRING LANGUAGE &rest ARGS
-
- Method: backend-translate BACKEND STRING LANGUAGE &rest ARGS
-
- Generic Function: compile-template-file COMPILED-TEMPLATE
-
- Package
djula
- Methods
- Method: compile-template-file (COMPILED-TEMPLATE compiled-template)
-
- Source
compiler.lisp (file)
- Generic Function: compiled-template OBJECT
-
- Generic Function: (setf compiled-template) NEW-VALUE OBJECT
-
- Package
djula
- Methods
- Method: compiled-template (COMPILED-TEMPLATE compiled-template)
-
- Method: (setf compiled-template) NEW-VALUE (COMPILED-TEMPLATE compiled-template)
-
The compiled template (a closure)
- Source
compiler.lisp (file)
- Generic Function: linked-templates OBJECT
-
- Generic Function: (setf linked-templates) NEW-VALUE OBJECT
-
- Package
djula
- Methods
- Method: linked-templates (COMPILED-TEMPLATE compiled-template)
-
- Method: (setf linked-templates) NEW-VALUE (COMPILED-TEMPLATE compiled-template)
-
Extends for Include files.
- Source
compiler.lisp (file)
- Generic Function: search-path OBJECT
-
- Generic Function: (setf search-path) NEW-VALUE OBJECT
-
- Package
djula
- Methods
- Method: search-path (FILE-STORE file-store)
-
- Method: (setf search-path) NEW-VALUE (FILE-STORE file-store)
-
User-provided list of template locations.
- Source
template-store.lisp (file)
- Generic Function: template-changed COMPILED-TEMPLATE
-
- Package
djula
- Methods
- Method: template-changed (COMPILED-TEMPLATE compiled-template)
-
- Source
compiler.lisp (file)
- Generic Function: template-file OBJECT
-
- Generic Function: (setf template-file) NEW-VALUE OBJECT
-
- Package
djula
- Methods
- Method: template-file (COMPILED-TEMPLATE compiled-template)
-
- Method: (setf template-file) NEW-VALUE (COMPILED-TEMPLATE compiled-template)
-
The filepath of the template
- Source
compiler.lisp (file)
- Generic Function: template-file-write-date OBJECT
-
- Generic Function: (setf template-file-write-date) NEW-VALUE OBJECT
-
- Package
djula
- Methods
- Method: template-file-write-date (COMPILED-TEMPLATE compiled-template)
-
- Method: (setf template-file-write-date) NEW-VALUE (COMPILED-TEMPLATE compiled-template)
-
The write date of the template file
- Source
compiler.lisp (file)
6.2.6 Conditions
- Condition: template-error ()
-
- Package
djula
- Source
conditions.lisp (file)
- Direct superclasses
simple-error (condition)
6.2.7 Classes
- Class: compiled-template ()
-
A compiled template
- Package
djula
- Source
compiler.lisp (file)
- Direct superclasses
funcallable-standard-object (class)
- Direct methods
-
- Direct slots
- Slot: compiled-template
-
The compiled template (a closure)
- Initargs
:compiled-template
- Readers
compiled-template (generic function)
- Writers
(setf compiled-template) (generic function)
- Slot: linked-templates
-
Extends for Include files.
- Initargs
:linked-templates
- Initform
(quote nil)
- Readers
linked-templates (generic function)
- Writers
(setf linked-templates) (generic function)
- Slot: template-file
-
The filepath of the template
- Initargs
:template-file
- Initform
(error "provide the template file")
- Readers
template-file (generic function)
- Writers
(setf template-file) (generic function)
- Slot: template-file-write-date
-
The write date of the template file
- Readers
template-file-write-date (generic function)
- Writers
(setf template-file-write-date) (generic function)
Appendix A Indexes
A.1 Concepts
| Index Entry | | Section |
|
D | | |
| djula.asd: | | The djula․asd file |
| djula/src: | | The djula/src module |
| djula/src/compiler.lisp: | | The djula/src/compiler․lisp file |
| djula/src/conditions.lisp: | | The djula/src/conditions․lisp file |
| djula/src/filters.lisp: | | The djula/src/filters․lisp file |
| djula/src/lexer.lisp: | | The djula/src/lexer․lisp file |
| djula/src/locale.lisp: | | The djula/src/locale․lisp file |
| djula/src/packages.lisp: | | The djula/src/packages․lisp file |
| djula/src/parser.lisp: | | The djula/src/parser․lisp file |
| djula/src/pipeline.lisp: | | The djula/src/pipeline․lisp file |
| djula/src/specials.lisp: | | The djula/src/specials․lisp file |
| djula/src/tag.lisp: | | The djula/src/tag․lisp file |
| djula/src/tags.lisp: | | The djula/src/tags․lisp file |
| djula/src/template-store.lisp: | | The djula/src/template-store․lisp file |
| djula/src/translation.lisp: | | The djula/src/translation․lisp file |
| djula/src/util.lisp: | | The djula/src/util․lisp file |
| djula/src/variables.lisp: | | The djula/src/variables․lisp file |
|
F | | |
| File, Lisp, djula.asd: | | The djula․asd file |
| File, Lisp, djula/src/compiler.lisp: | | The djula/src/compiler․lisp file |
| File, Lisp, djula/src/conditions.lisp: | | The djula/src/conditions․lisp file |
| File, Lisp, djula/src/filters.lisp: | | The djula/src/filters․lisp file |
| File, Lisp, djula/src/lexer.lisp: | | The djula/src/lexer․lisp file |
| File, Lisp, djula/src/locale.lisp: | | The djula/src/locale․lisp file |
| File, Lisp, djula/src/packages.lisp: | | The djula/src/packages․lisp file |
| File, Lisp, djula/src/parser.lisp: | | The djula/src/parser․lisp file |
| File, Lisp, djula/src/pipeline.lisp: | | The djula/src/pipeline․lisp file |
| File, Lisp, djula/src/specials.lisp: | | The djula/src/specials․lisp file |
| File, Lisp, djula/src/tag.lisp: | | The djula/src/tag․lisp file |
| File, Lisp, djula/src/tags.lisp: | | The djula/src/tags․lisp file |
| File, Lisp, djula/src/template-store.lisp: | | The djula/src/template-store․lisp file |
| File, Lisp, djula/src/translation.lisp: | | The djula/src/translation․lisp file |
| File, Lisp, djula/src/util.lisp: | | The djula/src/util․lisp file |
| File, Lisp, djula/src/variables.lisp: | | The djula/src/variables․lisp file |
|
L | | |
| Lisp File, djula.asd: | | The djula․asd file |
| Lisp File, djula/src/compiler.lisp: | | The djula/src/compiler․lisp file |
| Lisp File, djula/src/conditions.lisp: | | The djula/src/conditions․lisp file |
| Lisp File, djula/src/filters.lisp: | | The djula/src/filters․lisp file |
| Lisp File, djula/src/lexer.lisp: | | The djula/src/lexer․lisp file |
| Lisp File, djula/src/locale.lisp: | | The djula/src/locale․lisp file |
| Lisp File, djula/src/packages.lisp: | | The djula/src/packages․lisp file |
| Lisp File, djula/src/parser.lisp: | | The djula/src/parser․lisp file |
| Lisp File, djula/src/pipeline.lisp: | | The djula/src/pipeline․lisp file |
| Lisp File, djula/src/specials.lisp: | | The djula/src/specials․lisp file |
| Lisp File, djula/src/tag.lisp: | | The djula/src/tag․lisp file |
| Lisp File, djula/src/tags.lisp: | | The djula/src/tags․lisp file |
| Lisp File, djula/src/template-store.lisp: | | The djula/src/template-store․lisp file |
| Lisp File, djula/src/translation.lisp: | | The djula/src/translation․lisp file |
| Lisp File, djula/src/util.lisp: | | The djula/src/util․lisp file |
| Lisp File, djula/src/variables.lisp: | | The djula/src/variables․lisp file |
|
M | | |
| Module, djula/src: | | The djula/src module |
|
A.2 Functions
| Index Entry | | Section |
|
( | | |
| (setf compiled-template) : | | Internal generic functions |
| (setf compiled-template) : | | Internal generic functions |
| (setf linked-templates) : | | Internal generic functions |
| (setf linked-templates) : | | Internal generic functions |
| (setf search-path) : | | Internal generic functions |
| (setf search-path) : | | Internal generic functions |
| (setf template-file) : | | Internal generic functions |
| (setf template-file) : | | Internal generic functions |
| (setf template-file-write-date) : | | Internal generic functions |
| (setf template-file-write-date) : | | Internal generic functions |
|
A | | |
| accum : | | Internal macros |
| add : | | Exported functions |
| add-template-directory : | | Exported functions |
| addslashes : | | Exported functions |
| almost-parsed-ifequal : | | Exported functions |
| almost-parsed-ifnotequal : | | Exported functions |
| alter-pathname : | | Internal functions |
| and-bterm : | | Internal functions |
| apply-filters : | | Internal functions |
| apply-keys/indexes : | | Internal functions |
| autoescape : | | Exported functions |
|
B | | |
| backend-translate : | | Internal generic functions |
| backend-translate : | | Internal generic functions |
| backend-translate : | | Internal generic functions |
| backend-translate : | | Internal generic functions |
| backend-translate : | | Internal generic functions |
| backup-file : | | Internal functions |
| bliteral : | | Internal functions |
| block : | | Exported functions |
| boolean-comparison : | | Internal functions |
| boolexp-factor : | | Internal functions |
| boolexp-parser : | | Internal functions |
| bterm : | | Internal functions |
|
C | | |
| capfirst : | | Exported functions |
| comment : | | Exported functions |
| comment : | | Exported functions |
| comment-tag : | | Exported functions |
| comparison-operator-parser : | | Internal functions |
| compile-boolexp : | | Internal functions |
| compile-logical-statement : | | Internal functions |
| compile-string : | | Internal functions |
| compile-template : | | Exported generic functions |
| compile-template : | | Exported generic functions |
| compile-template : | | Exported generic functions |
| compile-template* : | | Exported functions |
| compile-template-file : | | Internal generic functions |
| compile-template-file : | | Internal generic functions |
| compile-token : | | Internal functions |
| compiled-template : | | Internal generic functions |
| compiled-template : | | Internal generic functions |
| cut : | | Exported functions |
| cycle : | | Exported functions |
|
D | | |
| date : | | Exported functions |
| datetime : | | Exported functions |
| debug : | | Exported functions |
| def-delimited-tag : | | Internal macros |
| def-filter : | | Exported macros |
| def-tag-compiler : | | Exported macros |
| def-tag-processor : | | Internal macros |
| def-token-compiler : | | Internal macros |
| def-token-processor : | | Internal macros |
| def-unparsed-tag-processor : | | Internal macros |
| default : | | Exported functions |
| directory-translate-strings : | | Exported functions |
| divisibleby : | | Exported functions |
| djula-emptyp : | | Internal functions |
|
E | | |
| emit-js : | | Exported functions |
| endautoescape : | | Exported functions |
| endblock : | | Exported functions |
| endcomment : | | Exported functions |
| endfilter : | | Exported functions |
| endfor : | | Exported functions |
| endif : | | Exported functions |
| endifchanged : | | Exported functions |
| endifequal : | | Exported functions |
| endifnotequal : | | Exported functions |
| endjs-script : | | Exported functions |
| escape : | | Exported functions |
| escape-for-html : | | Internal functions |
| escape-string-split : | | Internal functions |
| extends : | | Exported functions |
|
F | | |
| fetch-template : | | Exported generic functions |
| fetch-template : | | Exported generic functions |
| fetch-template* : | | Exported functions |
| file-template-translate-strings : | | Exported functions |
| filter : | | Exported functions |
| find-end-tag : | | Internal functions |
| find-filter : | | Internal functions |
| find-tag-compiler : | | Internal functions |
| find-tag-processor : | | Internal functions |
| find-template : | | Exported generic functions |
| find-template : | | Exported generic functions |
| find-template* : | | Exported functions |
| find-token-compiler : | | Internal functions |
| find-token-processor : | | Internal functions |
| find-unparsed-tag-processor : | | Internal functions |
| first : | | Exported functions |
| firstof : | | Exported functions |
| for : | | Exported functions |
| force-escape : | | Exported functions |
| format : | | Exported functions |
| format-translation : | | Internal functions |
| fragment-compiler : | | Exported generic functions |
| fragment-compiler : | | Exported generic functions |
| Function, add : | | Exported functions |
| Function, add-template-directory : | | Exported functions |
| Function, addslashes : | | Exported functions |
| Function, almost-parsed-ifequal : | | Exported functions |
| Function, almost-parsed-ifnotequal : | | Exported functions |
| Function, alter-pathname : | | Internal functions |
| Function, and-bterm : | | Internal functions |
| Function, apply-filters : | | Internal functions |
| Function, apply-keys/indexes : | | Internal functions |
| Function, autoescape : | | Exported functions |
| Function, backup-file : | | Internal functions |
| Function, bliteral : | | Internal functions |
| Function, block : | | Exported functions |
| Function, boolean-comparison : | | Internal functions |
| Function, boolexp-factor : | | Internal functions |
| Function, boolexp-parser : | | Internal functions |
| Function, bterm : | | Internal functions |
| Function, capfirst : | | Exported functions |
| Function, comment : | | Exported functions |
| Function, comment : | | Exported functions |
| Function, comment-tag : | | Exported functions |
| Function, comparison-operator-parser : | | Internal functions |
| Function, compile-boolexp : | | Internal functions |
| Function, compile-logical-statement : | | Internal functions |
| Function, compile-string : | | Internal functions |
| Function, compile-template* : | | Exported functions |
| Function, compile-token : | | Internal functions |
| Function, cut : | | Exported functions |
| Function, cycle : | | Exported functions |
| Function, date : | | Exported functions |
| Function, datetime : | | Exported functions |
| Function, debug : | | Exported functions |
| Function, default : | | Exported functions |
| Function, directory-translate-strings : | | Exported functions |
| Function, divisibleby : | | Exported functions |
| Function, djula-emptyp : | | Internal functions |
| Function, emit-js : | | Exported functions |
| Function, endautoescape : | | Exported functions |
| Function, endblock : | | Exported functions |
| Function, endcomment : | | Exported functions |
| Function, endfilter : | | Exported functions |
| Function, endfor : | | Exported functions |
| Function, endif : | | Exported functions |
| Function, endifchanged : | | Exported functions |
| Function, endifequal : | | Exported functions |
| Function, endifnotequal : | | Exported functions |
| Function, endjs-script : | | Exported functions |
| Function, escape : | | Exported functions |
| Function, escape-for-html : | | Internal functions |
| Function, escape-string-split : | | Internal functions |
| Function, extends : | | Exported functions |
| Function, fetch-template* : | | Exported functions |
| Function, file-template-translate-strings : | | Exported functions |
| Function, filter : | | Exported functions |
| Function, find-end-tag : | | Internal functions |
| Function, find-filter : | | Internal functions |
| Function, find-tag-compiler : | | Internal functions |
| Function, find-tag-processor : | | Internal functions |
| Function, find-template* : | | Exported functions |
| Function, find-token-compiler : | | Internal functions |
| Function, find-token-processor : | | Internal functions |
| Function, find-unparsed-tag-processor : | | Internal functions |
| Function, first : | | Exported functions |
| Function, firstof : | | Exported functions |
| Function, for : | | Exported functions |
| Function, force-escape : | | Exported functions |
| Function, format : | | Exported functions |
| Function, format-translation : | | Internal functions |
| Function, get-closing-delimiter : | | Internal functions |
| Function, get-variable : | | Internal functions |
| Function, if : | | Exported functions |
| Function, ifchanged : | | Exported functions |
| Function, ifequal : | | Exported functions |
| Function, ifnotequal : | | Exported functions |
| Function, in-list : | | Internal functions |
| Function, include : | | Exported functions |
| Function, integer-or-keyword : | | Internal functions |
| Function, iterable-list : | | Internal functions |
| Function, join : | | Exported functions |
| Function, join : | | Internal functions |
| Function, js : | | Exported functions |
| Function, js-script : | | Exported functions |
| Function, last : | | Exported functions |
| Function, length : | | Exported functions |
| Function, length_is : | | Exported functions |
| Function, linebreaks : | | Exported functions |
| Function, linebreaksbr : | | Exported functions |
| Function, lisp : | | Exported functions |
| Function, lisp : | | Exported functions |
| Function, locale-list : | | Exported functions |
| Function, lower : | | Exported functions |
| Function, make_list : | | Exported functions |
| Function, next-tag : | | Internal functions |
| Function, not-bfactor : | | Internal functions |
| Function, or-bterm : | | Internal functions |
| Function, parse-filter-string : | | Internal functions |
| Function, parse-rest-of-tag : | | Internal functions |
| Function, parse-tag : | | Internal functions |
| Function, parse-template-string : | | Internal functions |
| Function, parse-template-string : | | Internal functions |
| Function, parse-variable-clause : | | Internal functions |
| Function, parse-variable-phrase : | | Internal functions |
| Function, parsed-autoescape : | | Exported functions |
| Function, parsed-block : | | Exported functions |
| Function, parsed-filter : | | Exported functions |
| Function, parsed-for : | | Exported functions |
| Function, parsed-if : | | Exported functions |
| Function, parsed-ifchanged : | | Exported functions |
| Function, parsed-ifequal : | | Exported functions |
| Function, parsed-js : | | Exported functions |
| Function, parsed-js-script : | | Exported functions |
| Function, parsed-lisp : | | Exported functions |
| Function, parsed-set : | | Exported functions |
| Function, print-debugging-information : | | Internal functions |
| Function, print-fancy-debugging-information : | | Internal functions |
| Function, process-ifequal-args : | | Internal functions |
| Function, process-token : | | Internal functions |
| Function, process-tokens : | | Internal functions |
| Function, remove-first : | | Internal functions |
| Function, render-error-template : | | Internal functions |
| Function, render-template* : | | Exported functions |
| Function, replace : | | Exported functions |
| Function, resolve-plist : | | Internal functions |
| Function, resolve-variable-phrase : | | Internal functions |
| Function, rest : | | Exported functions |
| Function, reverse : | | Exported functions |
| Function, safe : | | Exported functions |
| Function, scan : | | Exported functions |
| Function, semi-parse-tag : | | Internal functions |
| Function, semi-parsed-filter : | | Exported functions |
| Function, semi-parsed-if : | | Exported functions |
| Function, semi-parsed-ifequal : | | Exported functions |
| Function, semi-parsed-ifnotequal : | | Exported functions |
| Function, semi-parsed-js-script : | | Exported functions |
| Function, set : | | Exported functions |
| Function, set-language : | | Exported functions |
| Function, set-package : | | Exported functions |
| Function, show-language : | | Exported functions |
| Function, slice : | | Exported functions |
| Function, slurp : | | Internal functions |
| Function, sort : | | Exported functions |
| Function, split-if-clause : | | Internal functions |
| Function, ssi : | | Exported functions |
| Function, string : | | Exported functions |
| Function, string : | | Exported functions |
| Function, string-string-p : | | Internal functions |
| Function, string-translate-strings : | | Internal functions |
| Function, super : | | Exported functions |
| Function, tag : | | Exported functions |
| Function, tag : | | Exported functions |
| Function, template-error : | | Internal functions |
| Function, template-error* : | | Internal functions |
| Function, template-error-string : | | Internal functions |
| Function, template-error-string* : | | Internal functions |
| Function, templatetag : | | Exported functions |
| Function, time : | | Exported functions |
| Function, token-type : | | Internal functions |
| Function, trans : | | Exported functions |
| Function, trans : | | Exported functions |
| Function, transform : | | Internal functions |
| Function, translate : | | Exported functions |
| Function, translation : | | Exported functions |
| Function, trim-whitespace : | | Internal functions |
| Function, truncate-characters : | | Internal functions |
| Function, truncatechars : | | Exported functions |
| Function, unparsed-tag : | | Exported functions |
| Function, unparsed-translation : | | Exported functions |
| Function, unparsed-variable : | | Exported functions |
| Function, update-caveman-project : | | Exported functions |
| Function, update-locale-list : | | Exported functions |
| Function, update-project : | | Exported functions |
| Function, upper : | | Exported functions |
| Function, url-encode : | | Exported functions |
| Function, url-encode-path : | | Exported functions |
| Function, urlencode : | | Exported functions |
| Function, variable : | | Exported functions |
| Function, verbatim : | | Exported functions |
| Function, with : | | Exported functions |
|
G | | |
| Generic Function, (setf compiled-template) : | | Internal generic functions |
| Generic Function, (setf linked-templates) : | | Internal generic functions |
| Generic Function, (setf search-path) : | | Internal generic functions |
| Generic Function, (setf template-file) : | | Internal generic functions |
| Generic Function, (setf template-file-write-date) : | | Internal generic functions |
| Generic Function, backend-translate : | | Internal generic functions |
| Generic Function, compile-template : | | Exported generic functions |
| Generic Function, compile-template-file : | | Internal generic functions |
| Generic Function, compiled-template : | | Internal generic functions |
| Generic Function, fetch-template : | | Exported generic functions |
| Generic Function, find-template : | | Exported generic functions |
| Generic Function, fragment-compiler : | | Exported generic functions |
| Generic Function, linked-templates : | | Internal generic functions |
| Generic Function, search-path : | | Internal generic functions |
| Generic Function, template-changed : | | Internal generic functions |
| Generic Function, template-file : | | Internal generic functions |
| Generic Function, template-file-write-date : | | Internal generic functions |
| Generic Function, template-print-object : | | Exported generic functions |
| get-closing-delimiter : | | Internal functions |
| get-variable : | | Internal functions |
|
I | | |
| if : | | Exported functions |
| ifchanged : | | Exported functions |
| ifequal : | | Exported functions |
| ifnotequal : | | Exported functions |
| in-list : | | Internal functions |
| include : | | Exported functions |
| integer-or-keyword : | | Internal functions |
| iterable-list : | | Internal functions |
|
J | | |
| join : | | Exported functions |
| join : | | Internal functions |
| js : | | Exported functions |
| js-script : | | Exported functions |
|
L | | |
| last : | | Exported functions |
| length : | | Exported functions |
| length_is : | | Exported functions |
| linebreaks : | | Exported functions |
| linebreaksbr : | | Exported functions |
| linked-templates : | | Internal generic functions |
| linked-templates : | | Internal generic functions |
| lisp : | | Exported functions |
| lisp : | | Exported functions |
| locale-list : | | Exported functions |
| lower : | | Exported functions |
|
M | | |
| Macro, accum : | | Internal macros |
| Macro, def-delimited-tag : | | Internal macros |
| Macro, def-filter : | | Exported macros |
| Macro, def-tag-compiler : | | Exported macros |
| Macro, def-tag-processor : | | Internal macros |
| Macro, def-token-compiler : | | Internal macros |
| Macro, def-token-processor : | | Internal macros |
| Macro, def-unparsed-tag-processor : | | Internal macros |
| Macro, with-file-handler : | | Internal macros |
| Macro, with-template-error : | | Internal macros |
| make_list : | | Exported functions |
| Method, (setf compiled-template) : | | Internal generic functions |
| Method, (setf linked-templates) : | | Internal generic functions |
| Method, (setf search-path) : | | Internal generic functions |
| Method, (setf template-file) : | | Internal generic functions |
| Method, (setf template-file-write-date) : | | Internal generic functions |
| Method, backend-translate : | | Internal generic functions |
| Method, backend-translate : | | Internal generic functions |
| Method, backend-translate : | | Internal generic functions |
| Method, backend-translate : | | Internal generic functions |
| Method, compile-template : | | Exported generic functions |
| Method, compile-template : | | Exported generic functions |
| Method, compile-template-file : | | Internal generic functions |
| Method, compiled-template : | | Internal generic functions |
| Method, fetch-template : | | Exported generic functions |
| Method, find-template : | | Exported generic functions |
| Method, fragment-compiler : | | Exported generic functions |
| Method, linked-templates : | | Internal generic functions |
| Method, search-path : | | Internal generic functions |
| Method, template-changed : | | Internal generic functions |
| Method, template-file : | | Internal generic functions |
| Method, template-file-write-date : | | Internal generic functions |
| Method, template-print-object : | | Exported generic functions |
| Method, template-print-object : | | Exported generic functions |
| Method, template-print-object : | | Exported generic functions |
|
N | | |
| next-tag : | | Internal functions |
| not-bfactor : | | Internal functions |
|
O | | |
| or-bterm : | | Internal functions |
|
P | | |
| parse-filter-string : | | Internal functions |
| parse-rest-of-tag : | | Internal functions |
| parse-tag : | | Internal functions |
| parse-template-string : | | Internal functions |
| parse-template-string : | | Internal functions |
| parse-variable-clause : | | Internal functions |
| parse-variable-phrase : | | Internal functions |
| parsed-autoescape : | | Exported functions |
| parsed-block : | | Exported functions |
| parsed-filter : | | Exported functions |
| parsed-for : | | Exported functions |
| parsed-if : | | Exported functions |
| parsed-ifchanged : | | Exported functions |
| parsed-ifequal : | | Exported functions |
| parsed-js : | | Exported functions |
| parsed-js-script : | | Exported functions |
| parsed-lisp : | | Exported functions |
| parsed-set : | | Exported functions |
| print-debugging-information : | | Internal functions |
| print-fancy-debugging-information : | | Internal functions |
| process-ifequal-args : | | Internal functions |
| process-token : | | Internal functions |
| process-tokens : | | Internal functions |
|
R | | |
| remove-first : | | Internal functions |
| render-error-template : | | Internal functions |
| render-template* : | | Exported functions |
| replace : | | Exported functions |
| resolve-plist : | | Internal functions |
| resolve-variable-phrase : | | Internal functions |
| rest : | | Exported functions |
| reverse : | | Exported functions |
|
S | | |
| safe : | | Exported functions |
| scan : | | Exported functions |
| search-path : | | Internal generic functions |
| search-path : | | Internal generic functions |
| semi-parse-tag : | | Internal functions |
| semi-parsed-filter : | | Exported functions |
| semi-parsed-if : | | Exported functions |
| semi-parsed-ifequal : | | Exported functions |
| semi-parsed-ifnotequal : | | Exported functions |
| semi-parsed-js-script : | | Exported functions |
| set : | | Exported functions |
| set-language : | | Exported functions |
| set-package : | | Exported functions |
| show-language : | | Exported functions |
| slice : | | Exported functions |
| slurp : | | Internal functions |
| sort : | | Exported functions |
| split-if-clause : | | Internal functions |
| ssi : | | Exported functions |
| string : | | Exported functions |
| string : | | Exported functions |
| string-string-p : | | Internal functions |
| string-translate-strings : | | Internal functions |
| super : | | Exported functions |
|
T | | |
| tag : | | Exported functions |
| tag : | | Exported functions |
| template-changed : | | Internal generic functions |
| template-changed : | | Internal generic functions |
| template-error : | | Internal functions |
| template-error* : | | Internal functions |
| template-error-string : | | Internal functions |
| template-error-string* : | | Internal functions |
| template-file : | | Internal generic functions |
| template-file : | | Internal generic functions |
| template-file-write-date : | | Internal generic functions |
| template-file-write-date : | | Internal generic functions |
| template-print-object : | | Exported generic functions |
| template-print-object : | | Exported generic functions |
| template-print-object : | | Exported generic functions |
| template-print-object : | | Exported generic functions |
| templatetag : | | Exported functions |
| time : | | Exported functions |
| token-type : | | Internal functions |
| trans : | | Exported functions |
| trans : | | Exported functions |
| transform : | | Internal functions |
| translate : | | Exported functions |
| translation : | | Exported functions |
| trim-whitespace : | | Internal functions |
| truncate-characters : | | Internal functions |
| truncatechars : | | Exported functions |
|
U | | |
| unparsed-tag : | | Exported functions |
| unparsed-translation : | | Exported functions |
| unparsed-variable : | | Exported functions |
| update-caveman-project : | | Exported functions |
| update-locale-list : | | Exported functions |
| update-project : | | Exported functions |
| upper : | | Exported functions |
| url-encode : | | Exported functions |
| url-encode-path : | | Exported functions |
| urlencode : | | Exported functions |
|
V | | |
| variable : | | Exported functions |
| verbatim : | | Exported functions |
|
W | | |
| with : | | Exported functions |
| with-file-handler : | | Internal macros |
| with-template-error : | | Internal macros |
|
A.3 Variables
| Index Entry | | Section |
|
* | | |
| *accumulated-javascript-strings* : | | Internal special variables |
| *allow-include-roots* : | | Exported special variables |
| *auto-escape* : | | Exported special variables |
| *block-alist* : | | Internal special variables |
| *catch-template-errors-p* : | | Exported special variables |
| *current-block* : | | Internal special variables |
| *current-compiler* : | | Exported special variables |
| *current-language* : | | Exported special variables |
| *current-store* : | | Exported special variables |
| *current-template* : | | Internal special variables |
| *default-language* : | | Exported special variables |
| *default-template-arguments* : | | Exported special variables |
| *djula-emptyp* : | | Exported special variables |
| *djula-execute-package* : | | Exported special variables |
| *elision-string* : | | Exported special variables |
| *error-template* : | | Exported special variables |
| *eval-lisp-tags* : | | Internal special variables |
| *fancy-debug-p* : | | Exported special variables |
| *fancy-error-template-p* : | | Exported special variables |
| *gettext-domain* : | | Internal special variables |
| *linked-templates* : | | Internal special variables |
| *template-arguments* : | | Internal special variables |
| *translation-backend* : | | Exported special variables |
| *untranslated-messages* : | | Internal special variables |
| *verbose-errors-p* : | | Exported special variables |
| *warn-on-untranslated-messages* : | | Internal special variables |
|
+ | | |
| +whitespace+ : | | Internal constants |
|
C | | |
| compiled-template : | | Internal classes |
| Constant, +whitespace+ : | | Internal constants |
| current-path : | | Exported classes |
|
F | | |
| fragment-compiler : | | Exported classes |
|
L | | |
| linked-templates : | | Internal classes |
|
S | | |
| search-path : | | Exported classes |
| Slot, compiled-template : | | Internal classes |
| Slot, current-path : | | Exported classes |
| Slot, fragment-compiler : | | Exported classes |
| Slot, linked-templates : | | Internal classes |
| Slot, search-path : | | Exported classes |
| Slot, template-file : | | Internal classes |
| Slot, template-file-write-date : | | Internal classes |
| Special Variable, *accumulated-javascript-strings* : | | Internal special variables |
| Special Variable, *allow-include-roots* : | | Exported special variables |
| Special Variable, *auto-escape* : | | Exported special variables |
| Special Variable, *block-alist* : | | Internal special variables |
| Special Variable, *catch-template-errors-p* : | | Exported special variables |
| Special Variable, *current-block* : | | Internal special variables |
| Special Variable, *current-compiler* : | | Exported special variables |
| Special Variable, *current-language* : | | Exported special variables |
| Special Variable, *current-store* : | | Exported special variables |
| Special Variable, *current-template* : | | Internal special variables |
| Special Variable, *default-language* : | | Exported special variables |
| Special Variable, *default-template-arguments* : | | Exported special variables |
| Special Variable, *djula-emptyp* : | | Exported special variables |
| Special Variable, *djula-execute-package* : | | Exported special variables |
| Special Variable, *elision-string* : | | Exported special variables |
| Special Variable, *error-template* : | | Exported special variables |
| Special Variable, *eval-lisp-tags* : | | Internal special variables |
| Special Variable, *fancy-debug-p* : | | Exported special variables |
| Special Variable, *fancy-error-template-p* : | | Exported special variables |
| Special Variable, *gettext-domain* : | | Internal special variables |
| Special Variable, *linked-templates* : | | Internal special variables |
| Special Variable, *template-arguments* : | | Internal special variables |
| Special Variable, *translation-backend* : | | Exported special variables |
| Special Variable, *untranslated-messages* : | | Internal special variables |
| Special Variable, *verbose-errors-p* : | | Exported special variables |
| Special Variable, *warn-on-untranslated-messages* : | | Internal special variables |
|
T | | |
| template-file : | | Internal classes |
| template-file-write-date : | | Internal classes |
|
A.4 Data types
| Index Entry | | Section |
|
C | | |
| Class, compiled-template : | | Internal classes |
| Class, compiler : | | Exported classes |
| Class, file-store : | | Exported classes |
| Class, toplevel-compiler : | | Exported classes |
| compiled-template : | | Internal classes |
| compiler : | | Exported classes |
| Condition, template-error : | | Internal conditions |
|
D | | |
| djula : | | The djula system |
| djula : | | The djula package |
| djula.filters : | | The djula․filters package |
| djula.locale : | | The djula․locale package |
| djula.tag-compilers : | | The djula․tag-compilers package |
| djula.tag-processors : | | The djula․tag-processors package |
| djula.token-compilers : | | The djula․token-compilers package |
| djula.token-processors : | | The djula․token-processors package |
| djula.unparsed-tag-processors : | | The djula․unparsed-tag-processors package |
|
F | | |
| file-store : | | Exported classes |
|
P | | |
| Package, djula : | | The djula package |
| Package, djula.filters : | | The djula․filters package |
| Package, djula.locale : | | The djula․locale package |
| Package, djula.tag-compilers : | | The djula․tag-compilers package |
| Package, djula.tag-processors : | | The djula․tag-processors package |
| Package, djula.token-compilers : | | The djula․token-compilers package |
| Package, djula.token-processors : | | The djula․token-processors package |
| Package, djula.unparsed-tag-processors : | | The djula․unparsed-tag-processors package |
|
S | | |
| System, djula : | | The djula system |
|
T | | |
| template-error : | | Internal conditions |
| toplevel-compiler : | | Exported classes |
|