richter 02/03/13 03:44:29
Modified: . Tag: Embperl2c Changes.pod Embperl.pod EmbperlD.pod
INSTALL.pod MANIFEST README
Embperl Tag: Embperl2c Recipe.pm
test/conf Tag: Embperl2c httpd.conf.src
Added: xsbuilder Tag: Embperl2c README
Log:
2.0b6
Revision Changes Path
No revision
No revision
1.129.4.53 +11 -11 embperl/Changes.pod
Index: Changes.pod
===================================================================
RCS file: /home/cvs/embperl/Changes.pod,v
retrieving revision 1.129.4.52
retrieving revision 1.129.4.53
diff -u -r1.129.4.52 -r1.129.4.53
--- Changes.pod 12 Mar 2002 08:58:43 -0000 1.129.4.52
+++ Changes.pod 13 Mar 2002 11:44:28 -0000 1.129.4.53
@@ -1,6 +1,6 @@
=pod
-=head1 2.0b6
+=head1 2.0b6 (BETA) 13. Mar. 2002
- Embperl have move from the namespace HTML::Embperl to Embperl.
This is because Embperl is no longer only a HTML framework,
@@ -42,8 +42,8 @@
sort of HTML editor should use EMBPERL_INPUT_ESCMODE to set the way
Embperl interprets the input.
- Added new configuration directives EMBPERL_INPUT_ESCMODE which controls
- the unescaping of the input. This superseds the old optRawInput and allows
- a more differentiated control.
+ the unescaping of the input. This superseds the old optRawInput and
+ allows a more differentiated control.
- Added form data validation. Embperl is now capable to do server-side
and client-side validation of form input. You just have to define
a set of rules and Embperl generates the correct JavaScript code and
@@ -53,14 +53,14 @@
- Added [= foo =] block and $r -> gettext method for page localization.
When the page is executed the 'foo' is replaced with a localizied
message for the current language.
- - Added methods r -> messages and r -> default_messages to define current
- message set for current language during application init.
- - Added embpmsgid.pl utility to extrcat message ids from Embperl pages and
- put them in a Data::Dumper or dbm file.
- - Simplified the definition of the recipe structure. This allows much more
- intuitiv definition of a new recipe.
- - A recipe struture can now also be passed directly to the Execute function
- as parameter.
+ - Added methods r -> messages and r -> default_messages to define
+ current message set for current language during application init.
+ - Added embpmsgid.pl utility to extrcat message ids from Embperl pages
+ and put them in a Data::Dumper or dbm file.
+ - Simplified the definition of the recipe structure. This allows much
+ more intuitiv definition of a new recipe.
+ - A recipe struture can now also be passed directly to the Execute
+ function as parameter.
- The get_recipe function now can be overriden by a custom application
object.
- Enhanced POD parser. Now generates a similar output as pod2xml,
1.56.4.15 +8 -7 embperl/Embperl.pod
Index: Embperl.pod
===================================================================
RCS file: /home/cvs/embperl/Embperl.pod,v
retrieving revision 1.56.4.14
retrieving revision 1.56.4.15
diff -u -r1.56.4.14 -r1.56.4.15
--- Embperl.pod 2 Mar 2002 00:46:16 -0000 1.56.4.14
+++ Embperl.pod 13 Mar 2002 11:44:28 -0000 1.56.4.15
@@ -124,28 +124,30 @@
is compiled only once at server startup, where other one-time actions
(such as opening files and databases) can take place. This will
drastically reduce response times for the request. To use this you
-must compile C<Apache httpd> with C<mod_perl> and add C<HTML::Embperl>
+must compile C<Apache httpd> with C<mod_perl>, load Embperl and add C<Embperl>
as the C<PerlHandler>.
Example of Apache C<srm.conf> or C<httpd.conf>:
- SetEnv EMBPERL_DEBUG 2285
+ PerlModule Embperl
+ EMBPERL_DEBUG 2285
Alias /embperl /path/to/embperl/eg
<Location /embperl/x>
SetHandler perl-script
- PerlHandler HTML::Embperl
+ PerlHandler Embperl
Options ExecCGI
</Location>
Another possible setup is
- SetEnv EMBPERL_DEBUG 2285
+ PerlModule Embperl
+ EMBPERL_DEBUG 2285
<Files *.epl>
SetHandler perl-script
- PerlHandler HTML::Embperl
+ PerlHandler Embperl
Options ExecCGI
</files>
@@ -159,8 +161,7 @@
out how you can configure Embperl so you can view the log file with
your browser!
-B<NOTE>: When mod_perl is compiled as loadable module (i.e. with USE_DSO) you
-B<must not> load Embperl at server startup time!
+B<NOTE>: Read also README.v2, this documentation is not updated yet to reflect
Embperl 2.0!!
B<See also>: L<"perldoc EmbperlObject"|"EmbperlObject.pod"> to see how to setup
I<Embperl> so as to
create your site out of small overwriteable objects.
1.29.4.14 +11 -7 embperl/EmbperlD.pod
Index: EmbperlD.pod
===================================================================
RCS file: /home/cvs/embperl/EmbperlD.pod,v
retrieving revision 1.29.4.13
retrieving revision 1.29.4.14
diff -u -r1.29.4.13 -r1.29.4.14
--- EmbperlD.pod 2 Mar 2002 00:46:16 -0000 1.29.4.13
+++ EmbperlD.pod 13 Mar 2002 11:44:28 -0000 1.29.4.14
@@ -21,18 +21,20 @@
=head2 mod_perl Konfiguration
-Um I<HTML::Embperl> als content handler unter I<mod_perl>
+Um I<Embperl> als content handler unter I<mod_perl>
laufen zu lassen, sind folgende Zeilen in der Apache Konfigurationsdatei
F<httpd.conf> n�tig:
Beipiel f�r Apache B<httpd.conf>:
- SetEnv EMBPERL_DEBUG 2285
+ PerlModule Embperl
+
+ EMBPERL_DEBUG 2285
<Location /embperl/x>
SetHandler perl-script
- PerlHandler HTML::Embperl
+ PerlHandler Embperl
Options ExecCGI
</Location>
@@ -49,18 +51,20 @@
aussehen:
- SetEnv EMBPERL_DEBUG 2285
+ PerlModule Embperl
+
+ EMBPERL_DEBUG 2285
<Files *.epl>
SetHandler perl-script
- PerlHandler HTML::Embperl
+ PerlHandler Embperl
Options ExecCGI
</files>
AddType text/html .epl
-B<HINWEIS>: Wenn I<mod_perl> mit C<USE_DSO> �bersetzt ist, darf I<Embperl> B<nicht>
-beim Starten des Server geladen werden!
+B<HINWEIS>: Diese Dokumentation ist noch nicht auf dem Stand von Embperl 2.0.
+Lesen Sie unbedingt README.v2, um Embperl 2.0 zu nutzen!!
=head2 Andere Arten Embperl zu nutzen
1.12.4.10 +4 -0 embperl/INSTALL.pod
Index: INSTALL.pod
===================================================================
RCS file: /home/cvs/embperl/INSTALL.pod,v
retrieving revision 1.12.4.9
retrieving revision 1.12.4.10
diff -u -r1.12.4.9 -r1.12.4.10
--- INSTALL.pod 27 Feb 2002 15:42:50 -0000 1.12.4.9
+++ INSTALL.pod 13 Mar 2002 11:44:28 -0000 1.12.4.10
@@ -291,6 +291,10 @@
=head2 How to continue
+
+B<IMPORTANT:> Before using Embperl 2.0, make sure you have read the
+README.v2. The documentation is not updated to 2.0 yet!!
+
You can view the documentation at any time from the Embperl source directory,
by using the following commands metioned below. After the installation you can
also view documention by specifying the full module name: e.g.
1.50.4.40 +1 -0 embperl/MANIFEST
Index: MANIFEST
===================================================================
RCS file: /home/cvs/embperl/MANIFEST,v
retrieving revision 1.50.4.39
retrieving revision 1.50.4.40
diff -u -r1.50.4.39 -r1.50.4.40
--- MANIFEST 12 Mar 2002 08:58:43 -0000 1.50.4.39
+++ MANIFEST 13 Mar 2002 11:44:28 -0000 1.50.4.40
@@ -546,6 +546,7 @@
xs/ep_xs_typedefs.h
xs/typemap
xsbuilder/ParseSource.pm
+xsbuilder/README
xsbuilder/WrapXS.pm
xsbuilder/maps/_types.map
xsbuilder/maps/ep_function.map
1.19.6.14 +7 -7 embperl/README
Index: README
===================================================================
RCS file: /home/cvs/embperl/README,v
retrieving revision 1.19.6.13
retrieving revision 1.19.6.14
diff -u -r1.19.6.13 -r1.19.6.14
--- README 27 Nov 2001 10:43:36 -0000 1.19.6.13
+++ README 13 Mar 2002 11:44:28 -0000 1.19.6.14
@@ -1,6 +1,6 @@
-HTML::Embperl - Embed Perl in Your HTML Documents
+Embperl - Building dynamic Websites with Perl
-Copyright (c) 1997-2001 Gerald Richter / ECOS GmbH
+Copyright (c) 1997-2002 Gerald Richter / ecos gmbh www.ecos.de
You may distribute under the terms of either the GNU General Public
License or the Artistic License, as specified in the Perl README file.
@@ -9,7 +9,7 @@
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-$Id: README,v 1.19.6.13 2001/11/27 10:43:36 richter Exp $
+$Id: README,v 1.19.6.14 2002/03/13 11:44:28 richter Exp $
### !! IMPORTANT !! IMPORTANT !! IMPORTANT !! IMPORTANT !! IMPORTANT !!
@@ -18,11 +18,11 @@
### This is a BETA release of Embperl 2.0, before installing
### please read the README.v2. Documentation is not yet updated to
### reflect the changes in 2.0, everything that has changed is
-### documented in README.v2. Since the last betas I have fixed a lot
-### of smaller bugs and use it now in production environment on my own.
-### But be carefull this release may still contain bugs.
+### documented in README.v2.
+### I use Embperl 2.0b in production environment on my own.
+### But be careful, this release may still contain bugs.
###
-### The current stable release is Embperl 1.3.3
+### The current stable release is Embperl 1.3.4
###
### !! IMPORTANT !! IMPORTANT !! IMPORTANT !! IMPORTANT !! IMPORTANT !!
No revision
No revision
1.1.2.13 +33 -52 embperl/Embperl/Attic/Recipe.pm
Index: Recipe.pm
===================================================================
RCS file: /home/cvs/embperl/Embperl/Attic/Recipe.pm,v
retrieving revision 1.1.2.12
retrieving revision 1.1.2.13
diff -u -r1.1.2.12 -r1.1.2.13
--- Recipe.pm 25 Feb 2002 11:20:28 -0000 1.1.2.12
+++ Recipe.pm 13 Mar 2002 11:44:29 -0000 1.1.2.13
@@ -10,7 +10,7 @@
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#
-# $Id: Recipe.pm,v 1.1.2.12 2002/02/25 11:20:28 richter Exp $
+# $Id: Recipe.pm,v 1.1.2.13 2002/03/13 11:44:29 richter Exp $
#
###################################################################################
@@ -69,16 +69,16 @@
=head1 SYNOPSIS
-PerlSetEnv EMBPERL_RECIPE "XSLT Embperl"
+EMBPERL_RECIPE "XSLT Embperl"
=head1 DESCRIPTION
Embperl::Recipe provides basic features that are necessary for createing
your own recipes.
-To do so you have to create a class that provides a C<new> method which returns
-a hash that contains the description what to do.
+To do so you have to create a class that provides a C<get_recipe> method which
returns
+a array reference that contains the description what to do.
-=head2 new ($class, $r, $recipe)
+=head2 get_recipe ($class, $r, $recipe)
=over 4
@@ -97,8 +97,8 @@
=back
-The function must return a hash that describes the desired action.
-The hash contains a tree structure of providers.
+The function must return an array that describes the desired action.
+The array contains a tree structure of providers.
=head2 Providers
@@ -341,58 +341,39 @@
=head2 Format
-Heres an example that show how the hash must be build:
+Heres an example that show how the recipe must be build:
+
+ sub get_recipe
- sub new
{
my ($class, $r, $recipe) = @_ ;
- my $self =
- {
- 'provider' =>
- {
- 'type' => 'xalan',
- 'source' =>
- {
- 'cache' => 0,
- provider =>
- {
- 'type' => 'xalan-parse-xml',
- 'source' =>
- {
- 'cache' => 0,
- provider =>
- {
- 'type' => 'file',
- 'filename' => $param -> {inputfile},
- }
- },
- },
- },
- 'stylesheet' =>
- {
- 'cache' => 1,
- provider =>
- {
- 'type' => 'xalan-compile-xsl',
- 'stylesheet' =>
- {
- 'cache' => 0,
- provider =>
- {
- 'type' => 'file',
- 'filename' => $param -> {xsltstylesheet},
- }
- },
- },
- }
- }
- } ;
+ my $param = $r -> component -> param ;
+ my @recipe ;
+
+ push @recipe, {'type' => 'file' } ;
+ push @recipe, {'type' => 'epparse' } ;
+ push @recipe, {'type' => 'epcompile', cache => 1 } ;
+ push @recipe, {'type' => 'eprun' } ;
+
+ my $config = $r -> component -> config ;
+ my $xsltproc = $config -> xsltproc ;
+
+ my @stylesheet =
+ (
+ { type => 'file', filename => $config -> xsltstylesheet, },
+ { type => $xsltproc . '-compile-xsl', cache => 1 },
+ ) ;
+
+
+ push @recipe, {'type' => 'eptostring' } ;
+ push @recipe, {'type' => $xsltproc . '-parse-xml', } ;
+ push @recipe, {'type' => $xsltproc, stylesheet => \@stylesheet } ;
- return $self ;
+ return \@recipe ;
}
-This corresponds to the following diagramm:
+This corresponds to the following diagramm (when xsltproc = xalan):
No revision
No revision
1.24.4.56 +2 -15 embperl/test/conf/httpd.conf.src
Index: httpd.conf.src
===================================================================
RCS file: /home/cvs/embperl/test/conf/httpd.conf.src,v
retrieving revision 1.24.4.55
retrieving revision 1.24.4.56
diff -u -r1.24.4.55 -r1.24.4.56
--- httpd.conf.src 12 Mar 2002 04:52:08 -0000 1.24.4.55
+++ httpd.conf.src 13 Mar 2002 11:44:29 -0000 1.24.4.56
@@ -51,19 +51,6 @@
#PerlModule causes some warning with Perl 5.005_03
#PerlModule Embperl
-EOD
-
-if (!$EPWIN32)
- {
- print OFH <<EOD ;
-
-###AddModule embperl.c
-
-EOD
- }
-
-print OFH <<EOD ;
-
Embperl_UseEnv off
EMBPERL_DEBUG $EPDEBUG
@@ -84,7 +71,7 @@
-if ($EPSESSIONVERSION && ($EPSESSIONVERSION > 1))
+if ($EPSESSIONXVERSION && ($EPSESSIONXVERSION > 1))
{
print OFH <<EOD ;
@@ -364,7 +351,7 @@
Options ExecCGI
EOD
-if ($EPSESSIONVERSION && ($EPSESSIONVERSION > 1))
+if ($EPSESSIONXVERSION && ($EPSESSIONXVERSION > 1))
{
print OFH <<EOD ;
No revision
No revision
1.1.2.1 +4 -0 embperl/xsbuilder/Attic/README
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]