From notifications-return-4934-archive-asf-public=cust-asf.ponee.io@freemarker.incubator.apache.org Thu Jan 25 10:50:44 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 40EBA180651 for ; Thu, 25 Jan 2018 10:50:44 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 309C9160C3D; Thu, 25 Jan 2018 09:50:44 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7905E160C13 for ; Thu, 25 Jan 2018 10:50:43 +0100 (CET) Received: (qmail 6741 invoked by uid 500); 25 Jan 2018 09:50:42 -0000 Mailing-List: contact notifications-help@freemarker.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@freemarker.incubator.apache.org Delivered-To: mailing list notifications@freemarker.incubator.apache.org Received: (qmail 6732 invoked by uid 99); 25 Jan 2018 09:50:42 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jan 2018 09:50:42 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id E9DEF180635 for ; Thu, 25 Jan 2018 09:50:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -11.731 X-Spam-Level: X-Spam-Status: No, score=-11.731 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id PkvPnb-ELj-d for ; Thu, 25 Jan 2018 09:50:41 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id 9B8AB5F23E for ; Thu, 25 Jan 2018 09:50:40 +0000 (UTC) Received: (qmail 6726 invoked by uid 99); 25 Jan 2018 09:50:40 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jan 2018 09:50:40 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 1E104DFC32; Thu, 25 Jan 2018 09:50:40 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ddekany@apache.org To: notifications@freemarker.incubator.apache.org Date: Thu, 25 Jan 2018 09:50:40 -0000 Message-Id: <67cc9409e3ce4ce9aa2d217c3dc99aba@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/2] incubator-freemarker git commit: emphasize difference between eval and interpret built-ins in the documentation Repository: incubator-freemarker Updated Branches: refs/heads/2.3-gae 794ce9a14 -> 70e5607f7 emphasize difference between eval and interpret built-ins in the documentation Project: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/commit/90fc6874 Tree: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/tree/90fc6874 Diff: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/diff/90fc6874 Branch: refs/heads/2.3-gae Commit: 90fc6874c878e1970dcd4f3c1641fd18fe7a27b7 Parents: 7a94e59 Author: Florian van der Wielen Authored: Wed Jan 24 13:12:38 2018 +0100 Committer: Florian van der Wielen Committed: Wed Jan 24 13:12:38 2018 +0100 ---------------------------------------------------------------------- src/manual/en_US/book.xml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/90fc6874/src/manual/en_US/book.xml ---------------------------------------------------------------------- diff --git a/src/manual/en_US/book.xml b/src/manual/en_US/book.xml index c61f02e..171257b 100644 --- a/src/manual/en_US/book.xml +++ b/src/manual/en_US/book.xml @@ -18030,7 +18030,7 @@ Sorted by name.last: evaluate string - This built-in evaluates a string as an FTL expression. For + This built-in evaluates a string as an FTL expression. For example "1+2"?eval returns number 3. The evaluated expression sees the same variables (such as @@ -18041,7 +18041,11 @@ Sorted by name.last: s there. Except, it can't use loop variable built-ins that refer to a loop variable that was created - outside s. + outside s. + Please note that the string accepts an expression, if you want to + render out a full-fledged template, please use the + interpret + built-in. Regarding the configuration settings that affect the parsing (like syntax) and evaluation the rules are the same as with the