From dev-return-103057-apmail-cocoon-dev-archive=cocoon.apache.org@cocoon.apache.org Fri Oct 28 10:17:33 2011 Return-Path: X-Original-To: apmail-cocoon-dev-archive@www.apache.org Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D67D57879 for ; Fri, 28 Oct 2011 10:17:33 +0000 (UTC) Received: (qmail 30911 invoked by uid 500); 28 Oct 2011 10:17:33 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 30859 invoked by uid 500); 28 Oct 2011 10:17:33 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 30851 invoked by uid 99); 28 Oct 2011 10:17:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Oct 2011 10:17:33 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of scherler@gmail.com designates 74.125.82.179 as permitted sender) Received: from [74.125.82.179] (HELO mail-wy0-f179.google.com) (74.125.82.179) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Oct 2011 10:17:27 +0000 Received: by wyg30 with SMTP id 30so4878138wyg.24 for ; Fri, 28 Oct 2011 03:17:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:subject:from:to:date:in-reply-to:references:content-type :x-mailer:content-transfer-encoding:mime-version; bh=qIjKWcExUQXt2UnPjoEXQU8+liVDL0sOjDhmLQ9SSOo=; b=YMlWsPY9hMgXj1DH6T3h4+G08W/zFobfxKu2+kt1AQYv/rhr1Qf+HlAK61Ih7oFsGy EWckSl30ReUYphO94p+uZUJ5qYLMiee+RfsXNimE0vWXTnPNrAYAtDuHgd34HSq7Ko1D I2h0f5ribVZz7Y+ikJrMWXNw0i+QnbN5rdMrA= Received: by 10.227.59.213 with SMTP id m21mr2822034wbh.19.1319797026430; Fri, 28 Oct 2011 03:17:06 -0700 (PDT) Received: from [10.0.0.16] (94.168.216.87.static.jazztel.es. [87.216.168.94]) by mx.google.com with ESMTPS id es5sm14625548wbb.11.2011.10.28.03.17.04 (version=SSLv3 cipher=OTHER); Fri, 28 Oct 2011 03:17:05 -0700 (PDT) Message-ID: <1319797023.4071.38.camel@mcKenny> Subject: Re: [c3] Implementing presentation logic in c3 From: Thorsten Scherler To: dev@cocoon.apache.org Date: Fri, 28 Oct 2011 12:17:03 +0200 In-Reply-To: <4EAA7679.6020403@apache.org> References: <1319755181.4195.96.camel@mcKenny> <4EAA6253.5000700@apache.org> <1319793469.4071.26.camel@mcKenny> <4EAA7679.6020403@apache.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.0- Content-Transfer-Encoding: 8bit Mime-Version: 1.0 On Fri, 2011-10-28 at 11:31 +0200, Francesco Chicchiriccò wrote: > On 28/10/2011 11:17, Thorsten Scherler wrote: > >... > > link > > > while this does not: > > > $if(!booleanParameter)$ > expression evaluated to true > $else$ > expression evaluated to false > $endif$ > > > As an alternative to my patch's approach, StringTemplateTransformer > could act in a way similar to StringTemplateGenerator's, i.e. buffering > the whole input document and passing it as a whole to ST: what do you think? I guess you implemented the first form as proof of concept since I would need the second form, but I will have now a try with your patch. In JX the transformer had been just a wrapper for the generator. That worked out pretty well. Could the StringTemplateTransformer not just wrapping the generator? The problem with buffering is that it works well under normal circumstances but blow up on a 3 gb file. Anyway I am still pretty ignorant of StringTemplateGeneratorTransformer, but are things like $link(url="http://www.usfca.edu", title="USF's website")$ working in c3? salu2 -- Thorsten Scherler codeBusters S.L. - web based systems http://www.codebusters.es/