Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Dalap is an extremely flexible serialization / template library for Clojure. The name is the acronym for Decide As Late As Possible, from lean programming.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
resources/js
src
test
.gitignore
.travis.yml
LICENSE
README.md
ROADMAP
buster.js
clojurescript-port.org
dalap_rules.clj
project.clj

README.md

Dalap (Decide As Late As Possible) Build Status

Dalap is an extremely flexible serialization / template library for Clojure.

The name is the acronym for Decide As Late As Possible, from lean programming.

On the surface, it is similar to the hiccup library and hiccup templates are valid input for Dalap. However, there are several key differences:

  • Dalap html-escapes all strings, unlike hiccup.

  • Dalap provides a selector/transformer system similar to the css selectors/transformers in Enlive.

  • Dalap is designed on the philosophy that templates should be declarative and focus on the intent of a UI screen while deferring the concrete html/css/js representation. This allows for greater reuse and specialization of templates in different contexts. See https://github.com/tavisrudd/throw_out_your_templates/blob/master/throw_out_your_templates.py#L197 for further discussion of this.

We intend to support client-side usage from clojurescript.

Usage

FIXME: see the test suite for the time-being

License

Copyright (C) 2012 Tavis Rudd and Roman Gonzalez

Distributed under the MIT License.

Something went wrong with that request. Please try again.