Hello all,
Been looking for a while for this answer, and seem to think it must
have been asked before, although both the archives mentioned in the
docs are down. So here goes:
Is there an easy way to pass a Hash to HTML::Template in hopes to use
the key/value pairs, without putting it in a ?
A
I usually do something like this:
checked="checked" />
Where, "yesBeeps" holds 1 or undefined. I guess your perl code would
look something like:
my $yesBeeps = 0;
$yesBeeps = 1
if beepStatus eq "yes";
$tmpl_obj->param(yesBeeps => $yesBeeps);
You may als
program that centers around sending
email, and it used HTML::Template for almost all of its HTML screens,
and I'm not really looking forward to taking advantage of another
system for regular text (I heart H::T)
Cheers,
Justin Simoni
--
// is an artist, living and working in Denv
ething needs to be saved, save it, if not, give me a screen to make
changes. It's lovely. Other people can understand what's going on and
it's in Perl :)
Couldn't have done it without you, HTML::Template!
I was thinking of extending the above and write something on Perl
Monks, li
simply use HTML
comments and wrap the template itself around them. For example:
and
What do you guys do?
Cheers,
Justin Simoni
--
:: is an eccentric artist, living and working in Denver, Colorado
:: URL: http://justinsimoni.com
:: PHO: 720.436.7701
:: Mailing List - http://j
e on what needed to be done to move from the mishmash in the
Perlcode, to the current system. I think I've been pondering this for
a while. One day :)
--
Justin Simoni
.: Dada Mail "Write Once - Distribute Everywhere" Email Communication
Software
url: http://d
about the rest of the HTML.
Does anyone else have a better strategy for testing the structure of
their HTML::Template templates? I'm wondering what the potential of
the block tags making the template itself have inconsistent HTML
structure. Probably fairly great, although it may be an inter
Ok, well, cludged my own solution to this problem:
On Sep 11, 2006, at 11:30 PM, Justin Simoni wrote:
> HTML::Lint at least barfs on the embedded comments inside HTML tags.
> That, of itself may not be valid HTML, in which case I've gotten a
> dead end.
Before I send the templat
th the block statements and thus can be tested for valid structure.
HTML::Lint at least barfs on the embedded comments inside HTML tags.
That, of itself may not be valid HTML, in which case I've gotten a
dead end.
Justin Simoni
--
:: is an eccentric artist, living and working in Denv
about
validating those conditions).
At the moment, I'm fixing the errors my fairly simple test is turning
up in my templates. I'm fairly pleased of the results I've gotten
back, most of the errors reported are, in fact, goofs in the HTML of
the HTML::Template templates.
Jus
Here's one for everyone:
I'm receiving data from $Untrusted_Source, that may have malicious
code, in the form of H::T tags that I'd like to simply sanitize by
munging it enough that it won't parse when run through H::T, but won't
*break* H::T as well.
Can anyone think of a simple-ish regex
hat it won't parse when run through H::T, but
>> won't *break* H::T as well.
>>
>> Can anyone think of a simple-ish regex to do this? Something like:
>>
>> my $untrusted = ; # (or, where ever)
>> $untrusted =~ s{>
>> Justin Simon
Thought people may be interested in this - this is the first Major (2 -
> 3) release of the program since 2000. Not to say I've been
lollygagging for that long or anythin'. The, "Advanced Email
Templating System" fancy-talk is HTML::Template in action.
Download Dada Mail:
http://dadama
13 matches
Mail list logo