herwise. I have no production code to test
compatibility with HTML::Template::Expr so I cannot state if this type
of change will work for everyone trying to sub-class HTML::Template.
However, I do know that making this change caused my sub-classes to
completely work and I am very happy about th
Hello,
>From some previous traffic on this list, Sam Tregar said:
|> Ultimately HTML::Template v2 doesn't offer much in terms of
|> official support for sub-classes and extensions. That's a
|> deficiency I intend to address in the perpetually-delayed v3.
I am trying to create a sub-class of
CSS, ect are all fetched via a secure link (all in the
template here, unless you use another to store the href to
use, like we do).
Sincerely,
Cory Trese
Lead Web Application Developer
O'NEIL & ASSOCIATES, INC.
495 Byers Rd.
Miamisburg, Ohio 45342-3662
Phone: (937) 865-0846 ext.
Hello, a suggestion:
Wrap your calls in 'load_tmpl( )' and then do
my $ht = $self->load_tmpl(...)
or my_error_handling_routine(...);
Use the eval call in load_tmpl( ) to determine if you return false or
true.
Just the way I would do it ...
Sincerely,
Cory Trese
Lead We
HTML::Template built from source with Visual Studio. I have included by
call to the HTML::Template constructor in case access to the default values
via param( ) is somehow controlled by new( ) arguments.
Thanks in advance.
Cory Trese
Lead Web Application Developer
O'NEIL & ASSOCIATES,
General CPAN FAQ:
http://www.cpan.org/misc/cpan-faq.html
(See: http://www.cpan.org/misc/cpan-faq.html#How_install_Perl_modules )
Also, PPM (if you are unfortunate enough to have to use windows):
http://aspn.activestate.com/ASPN/Products/ActivePerl-5.6/faq/ActivePerl-faq2
.html
My personal adv
You should look at CGI::Application, a web application toolkit that
integrates very well with HTML::Template.
Party on,
Cory
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Brad Cathey
Sent: Monday, March 03, 2003 12:05 PM
To: [EMAIL PROTECTED]
Subject: [ht
Images, Tables, Forms ... another problem format,
which is often created by DreamWeaver, and can be removed with HTML::Clean
AFAIK.
-- Cory
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> Drew Taylor
> Sent: Monday, February 10, 2003 11:05
y been escaped) and placing it into
HTML::Template.
Does anyone else see a need for a two way character escaping mechanism?
Thanks,
Cory Trese
Lead Web Application Developer
O'NEIL & ASSOCIATES, INC.
495 Byers Rd.
Miamisburg, Ohio 45342-3662
Phone: (937) 865-0800 ext.
eferences to the external Javascript or Cascading Style Sheet
> file from
> > the HTML template, the CGI runs fast; with the external files, really
> > slow. Is there anything I'm doing wrong, or has anyone else
> experienced
> > this?
I assume you mean it takes a lot le
Hello,
You can achieve the same results by using two HTML::Template objects.
start fake code:
my $t = HTML::Template->new( "foo.html" );
my $i = HTML::Template->new( "inner.html" );
$t->param( INNER => $i->output( ) );
: end fake code
Thanks,
Cory T
,
Cory Trese
Lead Web Application Developer
O'NEIL & ASSOCIATES, INC.
495 Byers Rd.
Miamisburg, Ohio 45342-3662
Phone: (937) 865-0800 ext. 3038
Fax: (937) 865-5858
E-mail: [EMAIL PROTECTED]
---
This SF.NET email is sponsored by:
My thought:
However, generating these messages in-code makes the component's interface
far harder to internationalize, IMHO.
However, in a situation where you have hundreds of error messages, in
template errors would be very difficult to maintain.
-- Cory
> -Original Message-
> From:
shed via "associate". Our development group has fastidiously
avoided the use of "include". We have been able to develop our entire
solution without a single include using standard HTML::Template, "associate"
and the method Sam points out.
-- Cory Trese
Cory Trese
>
> Ironically, if memory serves me right, I think that the tag
> attributes are case INsensitive no?
True, unless overridden in the constructor.
-- Cory
---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkg
True or false :
Filters damage caching performance?
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Sam
> Tregar
> Sent: Tuesday, September 24, 2002 1:49 PM
> To: Sean P. Scanlon
> Cc: [EMAIL PROTECTED]
> Subject: Re: [htmltmpl] HTML::Template & XS
HTML::Template Users:
Anyone considered a way to generate HTML::Templates with XSLT/XML?
I cannot create the construct, it is invalid.
FOO does not work. Neither does
Thoughts? Either on the constructs I'm trying to create with the XSLT, or
in a way to
make HTML::Template work with an XML
Here is my HTML::Template header that contains a CSS link.
-- Cory
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> Will
> Sent: Tuesday, September 17, 2002 1:16 PM
> To: HTML Template
> Subject: [htmltmpl] CSS in a Template
>
>
> Greets All,
>
I've been playing with :
http://search.cpan.org/author/TJMATHER/HTML-Template-XPath-0.10/lib/HTML/Tem
plate/XPath.pm
For a few days. Pretty cool -- claims to be based on HTML::Template, but
uses 'CONTENT_VAR' and 'CONTENT_LOOP' instead of the (insert praise here)
'TMPL_VAR' and 'TMPL_LOOP' nam
You need a loop. See the HTML::Template docs on LOOPS.
">
You pass a loop (AKA, "sites => \@sites_array_of_hashref," ) with the
necessary sites. This loop construction is business-logic (we would use a
module that prepared an array of hashrefs from a DBI routine.)
> -Original Messag
> Now my question... what do you folks think? Am I
> being too stubborn here, or should I learn the CGI on
> form writing? Maybe it would just be easiest to
> design my forms in DW and then set them into H::T? Is
> this recommended? What are the pros and cons of this
> approach?
We are here b
This is a feature, trust me. CGI::Application, and many other modules all
have param( ) methods. This (for one) allows them to communicate with each
other, (for two) lets us remember only one interface to objects.
To avoid confusion, name your objects well in your code. Maybe it is just
us but
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> Keith Jackson
> Sent: Tuesday, July 02, 2002 5:24 PM
> To: Will
> Cc: HTML Template
> Subject: Re: [htmltmpl] placing .tmpl files in a subdirectory?
>
Just to add my method :
>
> What we do is to p
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> Ralf Ullrich
>
>
> Hi Philip,
>
> thanks for your help.
>
> - Original Message -
>
> 2.: a servlet class that reads it template via getPathTranslated(). The
> template is parsed correctly an
24 matches
Mail list logo