Hi Aleksey,
No, that kind of structure doesn't work. HTML::Template for the sake of
speed and effeciency uses a one-pass parser.
Kenny
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf
> Of Aleksey Kohanov
> Sent: Saturday, December 21, 2002 3:31 PM
> T
Hey Sam,
It just looks like you can't win. *snickers*.
Kenny
JournalScape.com
---
This sf.net email is sponsored by: See the NEW Palm
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm000
Hi,
> associate: unclear how well this translates to Java.
This can translate to Java very easily, with the addition of some kind of
"Associateable" (terrible name) interface, so that any object can be passed
to the template and associated with it, as long as it implements the
associateable inter
using HTML::Template.
As those "cooler" than I say... "word." :)
Kenny Smith
---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
Html-t
e you are putting a scalar variable in the
'rows' variable, but you are tagging 'rows' as a TMPL_LOOP in your template.
You have to fix one or the other.
Kenny Smith
JournalScape.com
---
This sf.net email is sponsored by:Thi
Hi Roy,
Ah, I understand what you need. Checkout the documentation on the 'filter'
option. That will let you convert the SSI include into a TMPL include.
http://sam.tregar.com/html_template.html
Kenny
JournalScape.com
> What I really meant was convert the SSI include tag in
> *run-time* to an
>
If you have $ENV{'HTML_TEMPLATE_ROOT'} or the 'path' in your H::T
constructor set equal to the directory where includes lives, then you can
use this:
otherwise...
The documenation talks all about these things and they aren't hard to
find... so make sure you look through it before posting
Hi David,
I'm currently using the CGI::Carp qw(fatalsToBrowser) to grab those
things... maybe I'll look into customizing it's error message.
Kenny
> also if you're doing CGI programming and are just annoyed
> by apache's less-than-enlightening 500 Server Errors while
> you're writing/debugging
Hi all,
I posted this before, but I wanted to throw it out there again...
Is the only way to catch the internal H::T errors (like "attempt to set
parameter 'extra_urls' with a scalar - parameter is not a TMPL_VAR!") by
doing all of my H::T inside an eval and checking the magic error variables?
;m hoping there is some way to associate a subroutine ref (or something
similiar) with a template object which can be called in the case of an
error.
I've looked through the perldoc, but I didn't see anything. Any help?
Kenny Smith
JournalScape.com
te is merely displaying the the
given data based on the given data.
If any piece of the MVC paradigm isn't being followed in an application that
uses HTML::Template, it's only in the Model or the Controller, which really
isn't in Mr. Tregar's scope. :)
Kenny Smith
JournalScape.co
ew uses to determine what to show.
The View (in H::T) doesn't control the flow of the application, it merely
takes the data given to it by the Model and presents it, which is exactly
what it is supposed to do.
Kenny Smith
JournalScape.com
> -Original Message-
> From: [EMAIL PROTEC
Hi Philip,
> yeah, but not if two variables share the same name.
> I'd like to be able to separately specify which loop's
> var I want.
If you dislike the overlapping of names and whatnot, then I would just
recommend when you create your data structure that you actually name your
variables accor
> Advantage is that you can access a global var from any
> level of the loop. An imposed restriction could be
> that only elements from the current loop stack can be
> called, ie, you can't access vars across
> loops, only upwards from the current location.
Isn't that the way it is done in perl?
> global vars I probably won't, and I'd like to hear
> people's thoughts on this.
Hi Philip,
I probably wouldn't use it without the global_vars option. I use the
global_vars option all the time, it's too useful to be without.
Kenny
---
This
/js.mod_perl [E=PAGE:$1,L]
Kenny Smith
JournalScape.com
> Would requests for domain.com and/or
> domain.com/index.html be redirected
> to domain.com/scriptname right in Apache?
>
> I assume all links and pages will be
> domain.com/scriptname+params rather
> than domain.c
he=SCALAR(0x121a288)') called at .../Apache/Registry.pm line
149 eval {...}
called at .../Apache/Registry.pm line 149
Apache::Registry::handler('Apache=SCALAR(0x121a288)') called at /dev/null
line 0 eval {...} called at /dev/null line 0
Kenny Smith
JournalScape.com
--
aders and footers. In the header, I print the logo of
the site and navbar, and then open a ... then in the footer I close that
td and the rest of the table. So in my main template, I have something like:
-- policies.tmpl ---
-- end ---
Kenny Smith
JournalScap
like this. Mixing display logic with setup of variables is a very
>dangerous thing.
I don't even know what this is really useful for? If you are hard coding the
definition of a variable in your template, why can't you just hard code that
variable where you use it?
Kenny Smith
Jour
am from display.. the ability to change the look without
editing the source, etc.
Kenny Smith
JournalScape.com
---
This sf.net email is sponsored by:ThinkGeek
No, I will not fix your computer.
ht
x27;}/filename.tmpl
Hope this helps,
Kenny Smith
JournalScape.com
> Greets Folks,
>
> Does anyone here place their .tmpl files in a special
> directory assigned just for templates, like maybe:
>
> /cgi-bin/templates
>
> I was thinking of doing this for organizational
>
I see what you're getting at, but in those shell script instances 0 =
success, as opposed to true. I can argue semantics too. :)
Kenny
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
Alex Porras
Sent: Friday, June 21, 2002 11:09 AM
To: Kenny Smi
to be 0 (or anything else that is false).
So, what you are saying is TMPL_IF is false if the data is false. Sounds
like it works perfectly to me!
Kenny Smith
---
Sponsored by:
ThinkGeek at http://www.Th
23 matches
Mail list logo