[htmltmpl] The snarkiest way to print out specific values of a hash using HTML::Template?

2005-02-16 Thread Justin Simoni
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

Re: [htmltmpl] Problems with HTML::TEMPLATE

2005-03-16 Thread Justin Simoni
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

Re: [htmltmpl] ModPerl and HTML::Template?

2005-05-06 Thread Justin Simoni
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

[htmltmpl] ANNOUNCE: Dada Mail 2.9 Released

2005-05-10 Thread Justin Simoni
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

[htmltmpl] Designating which template produced the output HTML?

2005-07-30 Thread Justin Simoni
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

[htmltmpl] ANN: Dada Mail 2.10

2005-09-14 Thread Justin Simoni
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

[htmltmpl] Testing HTML::Template templates

2006-09-10 Thread Justin Simoni
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

Re: [htmltmpl] Testing HTML::Template templates

2006-09-11 Thread Justin Simoni
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

Re: [htmltmpl] Testing HTML::Template templates

2006-09-11 Thread Justin Simoni
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

Re: [htmltmpl] Testing HTML::Template templates

2006-09-11 Thread Justin Simoni
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

[htmltmpl] Sanitizing data against HTML::Template tags

2008-03-27 Thread Justin Simoni
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

Re: [htmltmpl] Sanitizing data against HTML::Template tags

2008-03-27 Thread Justin Simoni
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

[htmltmpl] ANNOUNCE: Dada Mail 3.0 Released

2008-06-25 Thread Justin Simoni
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