From 2c5a05af8f74bae12f2f6090545db0836792020d Mon Sep 17 00:00:00 2001 From: Tom Hombergs Date: Thu, 3 Nov 2016 21:40:12 +0100 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2749d2cf..4d7f181f 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ out.close(); ``` ## Replacing Expressions in a .docx Template -The main feature of docx-stamper is **replacement of expressions** within the text of the template document. Simply add expressions like `${person.name}` in the text of your .docx template and provide a context object against which the expression can be resolved. docx-stamper will try to keep the original formatting of the text in the template intact. +The main feature of docx-stamper is **replacement of expressions** within the text of the template document. Simply add expressions like `${person.name}` or `${person.name.equals("Homer") ? "Duff" : "Budweiser"}` in the text of your .docx template and provide a context object against which the expression can be resolved. docx-stamper will try to keep the original formatting of the text in the template intact. You can use the full feature set of [Spring Expression Language](http://docs.spring.io/spring/docs/current/spring-framework-reference/html/expressions.html). The value an expression resolves to may be of the following types: