Return-Path: Delivered-To: modperl-cvs-archive@hyperreal.org Received: (qmail 347 invoked by uid 6000); 30 Oct 1998 22:44:36 -0000 Received: (qmail 327 invoked by alias); 30 Oct 1998 22:44:35 -0000 Delivered-To: modperl-site-cvs@hyperreal.org Received: (qmail 318 invoked by uid 219); 30 Oct 1998 22:44:34 -0000 Date: 30 Oct 1998 22:44:34 -0000 Message-ID: <19981030224434.316.qmail@hyperreal.org> From: richter@hyperreal.org To: modperl-site-cvs@hyperreal.org Subject: cvs commit: modperl-site/embperl Changes.pod.1.html Sender: modperl-cvs-owner@apache.org Precedence: bulk Reply-To: modperl-cvs@apache.org richter 98/10/30 14:44:34 Modified: embperl Changes.pod.1.html Log: Embperl Webpages - Changes Revision Changes Path 1.18 +19 -0 modperl-site/embperl/Changes.pod.1.html Index: Changes.pod.1.html =================================================================== RCS file: /export/home/cvs/modperl-site/embperl/Changes.pod.1.html,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- Changes.pod.1.html 1998/10/27 22:34:58 1.17 +++ Changes.pod.1.html 1998/10/30 22:44:33 1.18 @@ -28,9 +28,28 @@ [- Execute ('filename.html') -] or use [- Execute ('filename.html', 1, 2, 3) -] to pass additional parameters + - Added new block [* ... *]. This block compiles code to an + outer subroutine which surounds the whole page. This makes + it possible to define "my" variables with a scope of the + whole page, which would be necessary for recursive calls + to Execute (and in the future for threads). + Also this let you use perl control structures inside Embperl + pages: e.g. + [* foreach $v (1..5) { *] Cnt = [+ $v +] [* } *] + NOTE: [* ... *] blocks _must_ always end with a ;,{ or } + [* ... *] cannot apear inside html tags that are + interpreted by Embperl (unless you disable the + interpretation of such tags like table, input etc.) + - Added a comment block: Everything between [# and #] is a + comment and is removed from the output. + NOTE: [* ... *] blocks also interpreted inside of a + [# ... #] block, all other blocks [+/-/$ $/-/+] are not. - Added new option dbgNoHiddenEmptyValue which suppresses empty hidden input fields in the [$hidden$] meta command. Patch from Steve Willer. + - Whitespaces after [...] blocks are removed in the output, so + there will be less empty lines, makeing the output shorter and + more readable, based on a patch from Todd Eigenshink.

   - fixed a wrong call to logerror when OPT_EXECCGI is not on,