You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl-cvs@perl.apache.org by ri...@apache.org on 2002/07/05 09:58:36 UTC
cvs commit: embperl/eg/web/pod/list pod.xsl
richter 2002/07/05 00:58:36
Modified: . Tag: Embperl2c Features.pod
Embperl/Form Tag: Embperl2c Validate.pm
Embperl/Form/Validate Tag: Embperl2c Default.pm
eg/web Tag: Embperl2c base.epl config.pl pod.xsl
Added: eg/web/pod/list Tag: Embperl2c pod.xsl
Log:
web
Revision Changes Path
No revision
No revision
1.2.6.2 +32 -37 embperl/Features.pod
Index: Features.pod
===================================================================
RCS file: /home/cvs/embperl/Features.pod,v
retrieving revision 1.2.6.1
retrieving revision 1.2.6.2
diff -u -r1.2.6.1 -r1.2.6.2
--- Features.pod 29 Jun 2002 19:23:11 -0000 1.2.6.1
+++ Features.pod 5 Jul 2002 07:58:35 -0000 1.2.6.2
@@ -6,58 +6,55 @@
=item *
-Lets you embed Perl code into HTML/XML or other text documents. Perl code is
-evaluated at the server side and the result is sent to the browser.
-All available Perl modules can be used.
+Embperl facilitates embedding Perl code into HTML/XML or other text documents.
+Perl code is evaluated at the server side and the result is sent to the browser.
+All available Perl modules can be used without any restriction.
=item *
-Allows to build Web sites out of small reusable
-components in a object-oriented way. Components can call and/or embed each other
-and inherit from other objects.
+Allows to build Web sites out of small reusable components in an object-oriented way.
+Components can call and/or embed each other and inherit from other objects.
=item *
-Standard layout of your site can be defined once and content is inserted by
-components based on the uri. Your documents just have to contain the unique
-stuff and not the common stuff
-like headers/footers or navigation bars. Also these common elements can
-be overwritten in each subdirectory.
+Standard layout of a web-site site can be defined once and the content can be
+dynamically generated by these components based on the uri. The documents need only
+contain the variable portions but not the common items which define the
+layout like headers/footers or navigation bars which normally form the template.
+Also these common elements can be overwritten in each sub-directory.
=item *
-Supports separating code, layout and creating MVC (Modell-View-Controller)
-applications. Control logic
-can be moved into an application object, which controls further execution
-of the request, while the actual pages are containing the display code.
-Simple applications can still embed all code in the pages.
+Embperl 2.0 thus facilitates separating code, layout and creating MVC (Model-View-Controller)
+applications. Control logic can be moved into an application object,
+which controls further execution of the request, while the actual pages are
+containing the display code. Simple applications can still embed all the code in the pages.
=item *
-Sourcecode for each component can come from a different source for example file,
-memory or subrequest which allows to act on the output from another Apache
+Source-code for each component can come from a different source, for eg.
+from file, memory or sub-request which allows to act on the output from another Apache
application like PHP, JSP, CGI Script etc.
=item *
-Each component can be in a different sourceformat (e.g. HTML, WML, XML, POD, ...)
-and if necessary can be transformed (for example via XSLT) to other output formats.
+Each component can be in a different source format (e.g. HTML, WML, XML, POD, ...)
+and can be transformed to other output formats, say by using via XSLT.
=item *
-Allows to use and define different syntaxes like Embperl, ASP, Text, Perl and more.
+Supports one or more scripting syntax using Embperl, ASP, Text, Perl and others.
=item *
-Output generation is divided into small steps where each
-is processed by a plugable provider. The interaction of the providers can be
-individuelly configured for every component via recipes.
+Output generation is divided into small steps where each is processed by a plugable provider.
+The interaction of the providers can be individually configured for each component via recipes.
=item *
@@ -66,36 +63,34 @@
=item *
-It delivers several features that ease the task of creating a websites,
-including dynamic tables, formfield-processing, escaping/unescaping, etc.
+Embperl encompasses several features that ease the task of dynamic web-site content generation,
+including dynamic-tables, form-field-processing, escaping/unescaping, etc.
=item *
-Handles per-user and per-module persistent session data for you.
-All you need to do is store and retrieve them to and from
-a special hash.
+Handles per-user and per-module persistent session requiring only storage and retrieval of
+the session data from a special hash.
=item *
-Offers a lot of options for maximum configurability according to your personal tastes and needs.
+Offers flexible configuration options to suite individual tastes and needs.
+
=item *
-Fully integrated into Apache and mod_perl to acheive the best
-performance. Can also run as a CGI-script, offline or called from
-another Perl program.
+Fully integrated into Apache and mod_perl to acheive the best performance.
+Can also run as a free standing CGI-script, off-line or can be called from another Perl program.
+
=item *
-The Perl module DBIx::Recordset offers high level, easy to handle
-database access for Embperl.
+The Perl module DBIx::Recordset offers high level, easy to use database access for Embperl.
=item *
-I<Embperl::Mail> gives you the possibility to send the result directly
-to a email address
+I<Embperl::Mail> enables redirecting the result output to a mail-recipient.
=back
No revision
No revision
1.1.2.13 +14 -6 embperl/Embperl/Form/Attic/Validate.pm
Index: Validate.pm
===================================================================
RCS file: /home/cvs/embperl/Embperl/Form/Attic/Validate.pm,v
retrieving revision 1.1.2.12
retrieving revision 1.1.2.13
diff -u -r1.1.2.12 -r1.1.2.13
--- Validate.pm 5 Jul 2002 07:16:50 -0000 1.1.2.12
+++ Validate.pm 5 Jul 2002 07:58:35 -0000 1.1.2.13
@@ -787,19 +787,27 @@
=item matches_regex
-Value must match Perl regular expression. Only executed on server side.
+Value must match B<Perl> regular expression. Only executed on server side.
=item matches_regex_js
-Value must match JavaScript regular expression. Only executed on client side.
+Value must match B<JavaScript> regular expression. Only executed on client side.
+B<IMPORTANT:> If the user has disabled JavaScript in his browser this test will
+be never executed. Use a corresponding Perl Regex with C<matches_regex>
+to get a server side validation. Use this with care, because different browser
+may have different support for regular expressions.
=item not_matches_regex
-Value must not match Perl regular expression. Only executed on server side.
+Value must not match B<Perl> regular expression. Only executed on server side.
=item not_matches_regex_js
-Value must not match JavaScript regular expression. Only executed on client side.
+Value must not match B<JavaScript> regular expression. Only executed on client side.
+B<IMPORTANT:> If the user has disabled JavaScript in his browser this test will
+be never executed. Use a corresponding Perl Regex with C<not_matches_regex>
+to get a server side validation. Use this with care, because different browser
+may have different support for regular expressions.
=item matches_wildcard
No revision
No revision
1.1.2.7 +19 -2 embperl/Embperl/Form/Validate/Attic/Default.pm
Index: Default.pm
===================================================================
RCS file: /home/cvs/embperl/Embperl/Form/Validate/Attic/Default.pm,v
retrieving revision 1.1.2.6
retrieving revision 1.1.2.7
diff -u -r1.1.2.6 -r1.1.2.7
--- Default.pm 5 Jul 2002 07:16:50 -0000 1.1.2.6
+++ Default.pm 5 Jul 2002 07:58:35 -0000 1.1.2.7
@@ -319,6 +319,14 @@
# --------------------------------------------------------------
+sub validate_matches_regex_js
+ {
+ my ($self, $key, $value, $arg, $fdat, $pref) = @_ ;
+
+ return undef ; # only client side!
+ }
+
+# --------------------------------------------------------------
sub getscript_matches_regex_js
{
my ($self, $arg, $pref) = @_ ;
@@ -333,6 +341,15 @@
my ($self, $key, $value, $arg, $fdat, $pref) = @_ ;
return ($value !~ /$arg/) ? undef : ['validate_not_matches_regex', $value, $arg] ;
+ }
+
+# --------------------------------------------------------------
+
+sub validate_not_matches_regex_js
+ {
+ my ($self, $key, $value, $arg, $fdat, $pref) = @_ ;
+
+ return undef ; # only client side!
}
# --------------------------------------------------------------
No revision
No revision
1.1.2.10 +1 -0 embperl/eg/web/Attic/base.epl
Index: base.epl
===================================================================
RCS file: /home/cvs/embperl/eg/web/Attic/base.epl,v
retrieving revision 1.1.2.9
retrieving revision 1.1.2.10
diff -u -r1.1.2.9 -r1.1.2.10
--- base.epl 1 Jul 2002 06:57:13 -0000 1.1.2.9
+++ base.epl 5 Jul 2002 07:58:35 -0000 1.1.2.10
@@ -35,6 +35,7 @@
.cPodH2 {[+ $base14 +] padding-left: 15px; padding-right: 15px; background: #D2E9F5; color: #000000; font-weight: bold; }
.cTopLink {[+ $base10 +] }
+ .cListOnlyText {[+ $base12 +] }
.cItemText {[+ $base14 +] font-weight: bold; }
.cPodVerbatim {font-family: monospace; font-size: 12px; background: #eeeeee;
border-left: solid 1px black; border-right: solid 1px black;
1.1.2.20 +1 -1 embperl/eg/web/Attic/config.pl
Index: config.pl
===================================================================
RCS file: /home/cvs/embperl/eg/web/Attic/config.pl,v
retrieving revision 1.1.2.19
retrieving revision 1.1.2.20
diff -u -r1.1.2.19 -r1.1.2.20
--- config.pl 1 Jul 2002 06:57:13 -0000 1.1.2.19
+++ config.pl 5 Jul 2002 07:58:35 -0000 1.1.2.20
@@ -77,7 +77,7 @@
@menu = (
{ menu => 'Home', uri => '', file => { en => 'eg/web/index.htm', de => 'eg/web/indexD.htm'} },
- { menu => 'Features', uri => 'pod/Features.htm', file => { en => 'Features.pod', de => 'FeaturesD.pod' }, sub =>
+ { menu => 'Features', uri => 'pod/list/Features.htm', file => { en => 'Features.pod', de => 'FeaturesD.pod' }, sub =>
[
{ menu => 'Features 1.3', uri => 'Features13.htm', path => { en => '%lib_1_3%/HTML/Features.pod', de => '%lib_1_3%/HTML/FeaturesD.pod' } }
]
1.1.2.14 +8 -8 embperl/eg/web/Attic/pod.xsl
Index: pod.xsl
===================================================================
RCS file: /home/cvs/embperl/eg/web/Attic/pod.xsl,v
retrieving revision 1.1.2.13
retrieving revision 1.1.2.14
diff -u -r1.1.2.13 -r1.1.2.14
--- pod.xsl 1 Jul 2002 06:57:13 -0000 1.1.2.13
+++ pod.xsl 5 Jul 2002 07:58:36 -0000 1.1.2.14
@@ -57,20 +57,20 @@
<table width="100%">
<tr>
- <td align="left" valign="top" width="35%">
+ <td align="left" valign="top" width="45%">
<xsl:if test="$prevpage > 0">
<a href="{$basename}.-page-{$prevpage}-.{$extension}" class="cPodHeaderNavLink">
- [<< Prev: <xsl:value-of select="preceding-sibling::sect1[para|verbatim|sect2][position()=1]/title"/>]
+ [ << Prev: <xsl:value-of select="preceding-sibling::sect1[para|verbatim|sect2][position()=1]/title"/> ]
</a>
</xsl:if>
</td>
- <td align="center" valign="top" width="30%">
- <a href="{$basename}.{$extension}" class="cPodHeaderNavLink">[Content]</a>
+ <td align="center" valign="top" width="10%">
+ <a href="{$basename}.{$extension}" class="cPodHeaderNavLink">[ Content ]</a>
</td>
- <td align="right" valign="top" width="35%">
+ <td align="right" valign="top" width="45%">
<xsl:if test="following-sibling::sect1">
<a href="{$basename}.-page-{$nextpage}-.{$extension}" class="cPodHeaderNavLink">
- [Next: <xsl:value-of select="following-sibling::sect1[para|verbatim|sect2]/title"/> >>]
+ [ Next: <xsl:value-of select="following-sibling::sect1[para|verbatim|sect2]/title"/> >> ]
</a>
</xsl:if>
@@ -89,7 +89,7 @@
<tr>
<td align="right">
<a href="{$basename}.-page-{$nextpage}-.{$extension}" class="cPodHeaderNavLink">
- [Next: <xsl:value-of select="/pod/sect1[para|verbatim|sect2]/title"/> >>]
+ [ Next: <xsl:value-of select="/pod/sect1[para|verbatim|sect2]/title"/> >> ]
</a>
</td>
</tr>
@@ -196,8 +196,8 @@
<xsl:apply-templates select="*[name()!='title']"/>
</xsl:if>
- <hr/>
<xsl:if test="$shownav = 1">
+ <hr/>
<xsl:call-template name="headernav"/>
</xsl:if>
No revision
No revision
1.1.2.1 +67 -0 embperl/eg/web/pod/list/Attic/pod.xsl
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-cvs-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-cvs-help@perl.apache.org