On 10/14/05, Petrov Dmithriy <[EMAIL PROTECTED]> wrote:
> Damn! Big thanks!!! :)
I just noticed I've been hitting "reply" instead of "reply to all" (I
vastly prefer lists that have reply-to set to the list, and yes, I'm
aware of the arguments against it), so I'll executive-summarize for
the list a
On 10/14/05, Sam Tregar <[EMAIL PROTECTED]> wrote:
> Nope, and I hope the documentation didn't promise any. I'm firmly in
> favor of exclusively using exceptions for errors, rather than C-style
> boolean returns.
Didn't say one way or t'other, hence my question. It might be worth
putting that in
It would be really cool if there were something like this:
http://search.cpan.org/~rubykat/HTML-LinkList-0.07/lib/HTML/LinkList.pm
only that produced TMPL_LOOPish results instead of final HTML, so you
could do funky things like:
my $html_links = link_list(current_url=>$url,
On 8/30/06, Covert, Jake (JSC.) <[EMAIL PROTECTED]> wrote:
> Don't think this is a Perl error, so I'm thinking it's an HTML::Template
> error, maybe.
Yep, it's actually a Perl error. It's complaining about
"@{$vendor_hoh{$vendor}}" in line 85:
> 85 my ($rif, $rif_out, $graph, $raw, $per
On 2/21/07, Robert Hicks <[EMAIL PROTECTED]> wrote:
It isn't readily apparent from the pod but can you have more than one
clause?
If they're nested:
first case
second case
third case
The TMPL_ELSE isn't an ELSIF, if that's what you're asking.
-
On 4/16/07, Barry Michels <[EMAIL PROTECTED]> wrote:
print $pjx->build_html($cgi,\&Show_HTML);
This is going to print the result of the build_html... a nice successful 1,
it appears. You might want to test the result, but you probably don't want
to print anything on success.
sub change_pag
On 4/29/07, Dan Horne <[EMAIL PROTECTED]> wrote:
Is there a way to loop from a lower integer to an higher one? For example,
say an article has a rating of 4. I'd like to loop from 1 to 4 and print a
star at each iteration. The only way I can see of doing this is create an
array ref in the perl c
On 4/29/07, Dan Horne <[EMAIL PROTECTED]> wrote:
> Well, I'm not "so" concerned (which to me implies some kind of fervour
> that I don't think I stated). I was simply asking if there was a way to
> iterate through integer values that I couldn't see in the POD - simple
> so the designers could decid
On 5/2/07, Alicia Amadoz <[EMAIL PROTECTED]> wrote:
> I have read something about environment variables HTML_TEMPLATE_ROOT
> and HTML_TEMPLATE_PATH but I am very confused with how they should be
> defined. Could anyone help me to solve this error?
You can set the environment variables within Perl
On 8/1/07, Chris Henden <[EMAIL PROTECTED]> wrote:
> I'm looking for a nice tutorial on HTML::Template authoring, aimed at
> a client-side developer, without any references to perl techniques
> (or perl references...).
There's some documentation on that order in the python "port", though
you'll ha
On 9/16/07, Tom Kopke <[EMAIL PROTECTED]> wrote:
>
> Line 468 reads:
> my $template = HTML::Template->new(filename => $pperror_template);
>
> An earlier instance calling HTML::Template in the same file works
> fine.
>
$pperror_template is, or has gotten, undefined.
You can confirm this by rep
On 3/19/08, Alex Teslik <[EMAIL PROTECTED]> wrote:
> But then I can no longer do all my escaping in the template.
Well, you're effectively handing it a half-escaped string. That's kind
of a special case.
> So I propose that the HTML::Template escaping does not squash HTML entities.
That would
On 5 Sep 2002 at 11:28, csajl wrote:
> the tmpl_include function works but only as far as vertical layout blocks are
> concerned (or am i missing something?).
You're missing something. But it's more of an HTML issue than an H-T issue.
> i searched the mailing list archives as well as google a
On 5 Sep 2002 at 13:58, csajl wrote:
> i was thinking i'd have to parse the entire x.tmpl into a string and supply
> that as a tmpl_var when i parse through the gui.tmpl.
> the separate two calls don't necessarily bother me at this point, but didn't
> understand if H-T was able to do such a thing
On Wed, 3 Nov 2004 23:29:04 -0500, Bill Nixon <[EMAIL PROTECTED]> wrote:
> I'm looking for suggestions on how to get a value from my template that can
> be used in my Perl code. I'd rather not switch to another template module
> that would provide this since HTML::Template has otherwise met my need
On Tue, 23 Nov 2004 20:26:42 -0800 (PST), Kasturirangan Rangaswamy
<[EMAIL PROTECTED]> wrote:
>Now, the B.tmpl and C.tmpl files access images stored in yet another
> directory (NOTE: Also tested by putting them in same directory and that
> is not working either!!!). Those images are not getting
e.
The first method seems like it would work, but I haven't thought about it
hard enough to make it work.
I'll be interested in hearing what (else) you come up with.
--
Karen J. Cravens [EMAIL PROTECTED]
---
This SF.Net email sponso
ve only one Lynx user, but since that one user is *me*,
that demographic will by golly be pandered to...)
--
Karen J. Cravens [EMAIL PROTECTED]
---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commer
too far right I just want to stop indenting, since (1) it's
going to wrap off the side of the monitor, and (2) that generally only
happens when it's degenerated into an argument, so who wants to read that
anyway?
--
Karen J. Cravens [EMAIL PROTECTED]
--
s, but you can never be too safe in debugging.
Not that I'm saying that's where the error is. Just that that's where the
error would be if it was my code...
--
Karen J. Cravens [EMAIL PROTECTED]
---
This SF.Net email spo
ML::Template, except the wiki, and I'm seriously considering rewriting
TWiki so that *it* uses H::T too.
--
Karen J. Cravens [EMAIL PROTECTED]
---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com
e I'm wrong, because
I'd really like to leave global_vars on, and I'd really like to use
__first__...
--
Karen J. Cravens [EMAIL PROTECTED]
---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek
ter* posting the question to the
list...
--
Karen J. Cravens [EMAIL PROTECTED]
---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
Html-template-users mai
On Mon, 15 Sep 2003, Karen J. Cravens wrote:
KJC>As is usual, I discovered this only *after* posting the question to the
KJC>list...
And after that, I realized things still aren't working quite right.
It's not the loop variables, though. It's the nested loop.
I've
een template and
code, you could pass a simple variable instead (level*N), and use it for
the width of a clear graphic, or an empty table cell. Or if you're using
expressions, you could pass the level value as is, and multiply it by the
desired amount within the template.
--
Karen J. Crav
/HTML/Q_20737567.html
(The problem is, of course, those of us who use non-Javascript browsers
will only get one frame updated. Of course, my non-JS browser is also a
non-framed browser, so I suppose it's a moot point...)
--
Karen J. Cravens [EMAIL PROTECTED]
ing two frames, but I can't think
of any other way to do it. Depending on the structure of your page, you
might be able to make the frames that need refreshed a nested framed page,
though.
--
Karen J. Cravens [EMAIL PROTECTED]
---
This sf.
ally suitable for this kind of use, or if I'm
OK>"abusing" it.
If that's "abuse," then I'm "abusing" H::T more than I'm "using" it.
--
Karen J. Cravens [EMAIL PROTECTED]
---
This S
On Sun, 12 Oct 2003, Douglas Kirkland wrote:
DK>I thought H::T was designed to make dynamic and static pages. The only
DK>difference I found is where the output is sent.
Not just pages, either... I use it to generate autoresponder emails and
other fun things.
--
Karen J. Cravens
in the same frame the clicked link was in. (You can probably do
something different with Javascript, but you should never count on that.)
--
Karen J. Cravens [EMAIL PROTECTED]
---
This SF.net email is sponsored by: SF.net Giveback Program.
Does S
t, I'm somewhat puzzled. My guess would have to be that one of the
two instances (presumeably the template, if the error was accurately
quoted) has a typo somewhere.
--
Karen J. Cravens [EMAIL PROTECTED]
---
This SF.net email i
ables exist in the inner loop if they're *used* in the outer loop. So
if you put them inside a comment in the outer loop, you're more or less
okay.
--
Karen J. Cravens [EMAIL PROTECTED]
---
This SF.net email is sponsored by: S
27;t that error be HTML::Template::Expr->new() if you're using Expr?
(I haven't used Expr, myself, so I could be wrong.)
--
Karen J. Cravens [EMAIL PROTECTED]
---
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceF
d HTML comments, so I don't know that
it'd be worth adding code to the module for. I like minimalistic modules.
--
Karen J. Cravens [EMAIL PROTECTED]
---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in
omewhere, and "HTML" in it nowhere. Aside from the appearance of
the TMPL_ tags, it's not especially HTML-centric, and certainly some of us
use it for generic templating.
Course, that'd add work for us existing users, so I'm not going to lobby
too hard for tha
I'd have it turned on at
first, and have test templates that accept all of them and make sure
they're showing properly, and then turn it off for production use.)
--
Karen J. Cravens [EMAIL PROTECTED]
---
This SF.net email is s
probably due to my penchant for constructing URLs inside
the templates rather than in the code, of course.
--
Karen J. Cravens [EMAIL PROTECTED]
---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just s
a la Perl Cookbook) to include in the
documentation, though. Especially fancy variations that can look inside
loops.
--
Karen J. Cravens [EMAIL PROTECTED]
---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in
en the configuration ends and the template begins,
and hand the rest of the file off to a new H::T instance.
--
Karen J. Cravens [EMAIL PROTECTED]
---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just s
e to decide to separate the config from the user
content.
--
Karen J. Cravens [EMAIL PROTECTED]
---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free
sentially turning the whole site into a Wiki, technically I
*am* going to have an auto-generated title. Not in the database, though;
it'll more likely be the site + web + Wiki Word (a la "Phoenyx : Members :
Karen Cravens"). Which sort of eliminates the problem, for me, I gu
On Tue, 9 Dec 2003, Puneet Kishor wrote:
PK>I achieve consistent look and feel via css. I achieve consistent layout
PK>via H::T.
I use CSS as well, but that doesn't change how the title gets handled.
Perhaps if you could give an example of how you build the headers, it
might be clearer to us.
I'll probably end up doing, you're
processing the content as a nested template, a la:
$page->param("content", $subpage->output)).
There are advantages and drawbacks to either approach.
--
Karen J. Cravens [EMAIL PROTECTED]
es your code significantly more complex.
No doubt. But since those cases aren't generating things on the fly, I'm
not too worried about the one-time performance hit.
--
Karen J. Cravens [EMAIL PROTECTED]
---
This SF.net email is sponsored b
t. Hence the refactoring.
--
Karen J. Cravens [EMAIL PROTECTED]
---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everyth
This is the sort of thing I was thinking of... it's quick and dirty
(*very* dirty), and really not worth even making into a module, but I did,
at least in theory (I haven't used it yet, and may never... I can't
actually remember the circumstances in which I thought it might be
useful).
It stomps a
;t found one
yet.)
--
Karen J. Cravens [EMAIL PROTECTED]
---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1
On Tue, 17 Feb 2004, P Kishor wrote:
PK> It was fun being at OSCON when this beast was born...
Aw, rub it in, whydoncha?
--
Karen J. Cravens [EMAIL PROTECTED]
---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and dep
e that to the database directly.
The problem I had with Ikonboard was that it didn't do any file locking...
get two posts simultaneously and they'd stomp all over each other. Shades
of Matt's WWWBoard. Of course, that was a couple of years ago, so it may
have matured since then, an
oduce both the
verification code and HTML fragments, or what.
--
Karen J. Cravens [EMAIL PROTECTED]
---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technol
ubmit data that deliberately violates
it. So the script has to know what list selections are permissible
(presently I feed those *from* the script via TMPL_LOOP), things like
that. Client-side checking absolutely can't be trusted to do that.
--
Karen J. Cravens [EMAIL PROTECTED]
-
ngs up without introducing extra stuff into the final
document. You end up with peculiarly-placed angle brackets, and
resists the intrusion a bit, but you end up with no whitespace
from this:
That<
TMPL_ELSE
>The other
Of course, then one has to be extra careful to get the angle bracket co
d about missed params.
Buy the mod_perl book... it has a lovely section on setting up test
*instances* of a live server, without having to have a separate box, or
compile, or anything.
(I learned more about Apache from the mod_perl book than I did from the
Apache book. Go figure.)
--
Karen J
mp on
any filename.html versions that might occupy the same directory.
No, make that two drawbacks: if you forget and save the file without
undoing the Beautify-cation, you have to go and edit all the whitespace
back out.
--
Karen J. Cravens [EMAIL PROTECTED]
--
But can he create a new instance of the server with a different config?
Might be adequate. I run the test server on my own machine with only my
own (normal-user) access.
--
Karen J. Cravens [EMAIL PROTECTED]
---
This SF.Net email is spo
ion. Even if you assume all the users you care about
use Javascript, you're also assuming that all the users who can submit
data are honest.
They're not.
--
Karen J. Cravens [EMAIL PROTECTED]
---
This SF.Net email is sponsored by Slee
ted ones blank you *could*
still use it in a TMPL_IF, but that's a bit risky...)
--
Karen J. Cravens [EMAIL PROTECTED]
---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Orac
57 matches
Mail list logo