Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Embedded Dart Templates

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 runtime
Octocat-spinner-32 test
Octocat-spinner-32 .children
Octocat-spinner-32 .project
Octocat-spinner-32 AUTHORS
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 Lib.dart
Octocat-spinner-32 RuntimeLib.dart
Octocat-spinner-32 edt.dart


Embedded Dart Templates


  • Template compilation to dart code.
  • Unbuffered code for conditions and loops {{ ..code.. }}
  • Html escaped expressions with {{= ..expression.. }}
  • Unescaped expressions with {{- ..expression.. }}
  • Static includes support with {{> relative_path }} where path is relative from a base template
  • More advanced layout system support (details here)


Include content {{=data["third"]}} {{-data["forth"]}}

Where data is a special variable (which is Map) that you pass into EDTemplate#render(Map data, OutputStream out) method


  • This library is designed to work with server environment.
  • Tested for windows platform.
  • Currently templates should be UTF-8 encoded.

Compiler options

  • --out=dir_path - path to an output directory => for example ../test
  • --file=file_path - path to the template file => for example ../test/example.edt
  • --src=dir_path - path to an source directory where lookup for template files => for example ../src Be aware that currently we do not support absolute paths as the compiler parameter. All path should be relative to a worker directory.

An example of the syntax could be found in the test folder.

I also have recently released to a public a real life website example

Something went wrong with that request. Please try again.