Return-Path: Delivered-To: apmail-cocoon-cvs-archive@www.apache.org Received: (qmail 91956 invoked from network); 4 Apr 2004 04:48:51 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 4 Apr 2004 04:48:51 -0000 Received: (qmail 15808 invoked by uid 500); 4 Apr 2004 04:48:17 -0000 Delivered-To: apmail-cocoon-cvs-archive@cocoon.apache.org Received: (qmail 15753 invoked by uid 500); 4 Apr 2004 04:48:17 -0000 Mailing-List: contact cvs-help@cocoon.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@cocoon.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@cocoon.apache.org Received: (qmail 15716 invoked by uid 500); 4 Apr 2004 04:48:16 -0000 Delivered-To: apmail-cocoon-2.1-cvs@apache.org Received: (qmail 15709 invoked from network); 4 Apr 2004 04:48:16 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 4 Apr 2004 04:48:16 -0000 Received: (qmail 91840 invoked by uid 1746); 4 Apr 2004 04:48:35 -0000 Date: 4 Apr 2004 04:48:35 -0000 Message-ID: <20040404044835.91839.qmail@minotaur.apache.org> From: antonio@apache.org To: cocoon-2.1-cvs@apache.org Subject: cvs commit: cocoon-2.1/src/blocks/bsf/conf bsf.xmap X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N antonio 2004/04/03 20:48:35 Modified: src/blocks/bsf/conf bsf.xmap Added: src/blocks/bsf/samples/generator hello.gy Log: Add Groovy script generator under BSF block Revision Changes Path 1.1 cocoon-2.1/src/blocks/bsf/samples/generator/hello.gy Index: hello.gy =================================================================== /* * Copyright 1999-2004 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import groovy.xml.MarkupBuilder; // Step 1 -- Retrieve helper "beans" from the BSF framework source = bsf.lookupBean("source") output = bsf.lookupBean("output") logger = bsf.lookupBean("logger") // Step 2 -- Start the generator logger.debug("START " + source) //xml = new MarkupBuilder() // Use output send the result back to Cocoon output.append("") output.append("") output.append("Hello Groovy Baby!") output.append("") output.append("") output.append("") output.append("This is my first Cocoon page in Groovy!") output.append("") output.append("") output.append("") /* The following code is prettier, but currently does not work :-( will be fixed the the next release of groovy */ /* xml.page() { title("Hello2") content() { para("This is my first Cocoon page in Groovy!") } } logger.debug("END " + source) output.append xml */ 1.5 +1 -3 cocoon-2.1/src/blocks/bsf/conf/bsf.xmap Index: bsf.xmap =================================================================== RCS file: /home/cvs//cocoon-2.1/src/blocks/bsf/conf/bsf.xmap,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- bsf.xmap 4 Apr 2004 04:44:09 -0000 1.4 +++ bsf.xmap 4 Apr 2004 04:48:35 -0000 1.5 @@ -18,9 +18,7 @@ - +