Skip to content

Templating Guide

tporcham edited this page Jan 30, 2019 · 2 revisions

MVEL text templating is a powerful extension of the MVEL language, allowing you to take the power of MVEL and create robust, fast and human-readable templates.

An Example Template

Hello, @{title} @{firstName}

We just want to tell you about our wonderful new expression
language, MVEL.  Come check it out at https://github.com/tporcham/mvel.
Thanks again @{firstName}, we hope to see you soon.

-- The MVEL Team

(No, we don't spam people)

The Docs

  1. Templating Basics
  2. Control Flow
  3. Iteration
  4. Template Registry
  5. Nested Templates
  6. How-to Integrate

Still stuck? TemplateConfidenceTests is a good place to look for examples on all of MVEL's Templating capabilities.