Next: , Previous: , Up: Top   [Contents][Index]

1 Introduction

Djula is an HTML templating system similar to Django templates for Common Lisp.

Djula’s template language is designed to strike a balance between power and ease. It’s designed to feel comfortable to those used to working with HTML.

Philosophy: If you have a background in programming, or if you’re used to languages which mix programming code directly into HTML, you’ll want to bear in mind that the Djula template system is not simply Common Lisp code embedded into HTML. This is by design: the template system is meant to express presentation, not program logic.

The Djula template system provides tags which function similarly to some programming constructs – an if tag for boolean tests, a for tag for looping, etc. – but these are not simply executed as the corresponding Lisp code, and the template system will not execute arbitrary Lisp expressions. Only the tags, filters and syntax listed below are supported by default (although you can add your own extensions to the template language as needed).

Next: , Up: Introduction   [Contents][Index]

1.1 Prerequisites

TODO: list of Common Lisp compilers Djula works on.

Previous: , Up: Introduction   [Contents][Index]

1.2 Installation

Djula is available on Quicklisp:

(ql:quickload :djula)

Previous: , Up: Introduction   [Contents][Index]