ede

Templating language with similar syntax and features to Liquid or Jinja2.

http://github.com/brendanhay/ede

Version on this page:0.2.8.7
LTS Haskell 21.25:0.3.3.0
Stackage Nightly 2023-06-21:0.3.3.0
Latest on Hackage:0.3.3.0

See all snapshots ede appears in

LicenseRef-OtherLicense licensed by Brendan Hay
Maintained by Brendan Hay
This version can be pinned in stack with:ede-0.2.8.7@sha256:7e5b7af141cd1aa057048be0849a27b51389ba8d63f6a17bf3316e182773d2f6,3563

Module documentation for 0.2.8.7

ED-E

Introduction

ED-E is a templating language written in Haskell with a specific set of features:

  • Logicless (within reason): A small set of consistent predicates and expressions for formatting and presentational logic are provided.
  • Secure: No arbitrary code evaluation, with input data required to be fully specified at render time.
  • Stateless: Parsing and rendering are separate steps so that loading, parsing, include resolution, and embedding of the compiled template can optionally be done ahead of time, amortising cost.
  • Markup agnostic: ED-E is used to write out everything from configuration files for system services, to HTML and formatted emails.
  • Control over purity: Users can choose pure or IO-based resolution of include expressions.
  • No surprises: All parsing, type assurances, and rendering steps report helpful error messages with line/column metadata. Variable shadowing, unprintable expressions, implicit type coercion, and unbound variable access are all treated as errors errors.

Please see the documentation for more information.

Syntax

A set of syntatic/semantic fragments for all supported expressions can be found in the tests or the documentation.

Contribute

For any problems, comments or feedback please create an issue here on GitHub.

Licence

ED-E is released under the Mozilla Public License Version 2.0