What's new? | Help | Directory | Sign in
Google
erlydtl
Erlang implementation of the Django Template Language
  
  
  
  
    
License: MIT License
Labels: erlang, django, templates
Show all Featured Wiki Pages:
Overview
Join project
Project owners:
  rsaccon, emmiller
Project members:
colm.dougan

An ErlyDTL template is a text file (e.g.: a HTML or CSS file) containing variables to control the runtime template content, tags to control the runtime template logic and comments, which get filtered out.

ErlyDTL compiles template source files to Erlang bytecode.

Basic examples illustrating the syntax:

source code: at runtime:
Variables (e.g.: a=7) text {{ a }} text text 7 text
Tags (e.g.: for-tag with variable b=[1,2,3]) {% for i in b %} <{{ i }}> {% endfor %} <1> <2> <3>
Comments text {# hello #} text text text

Features:

Requirements:

ToDo: