RE: [htmltmpl] TMPL_INCLUDE and TMPL_VAR !??

2002-12-22 Thread Kenny Smith
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

RE: [htmltmpl] __counter__ not starting at zero

2002-11-05 Thread Kenny Smith
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

RE: [htmltmpl] [OT] ANN: htmltemplate: A new Java implementation of HTML::Template syntax

2002-10-23 Thread Kenny Smith
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

RE: [htmltmpl] Error code.

2002-10-10 Thread Kenny Smith
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

RE: [htmltmpl] Error code.

2002-10-10 Thread Kenny Smith
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

RE: [htmltmpl] SSI and HTML::Template

2002-09-21 Thread Kenny Smith
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

RE: [htmltmpl] SSI and HTML::Template

2002-09-21 Thread Kenny Smith
> 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

RE: [htmltmpl] Custom Errors

2002-09-09 Thread Kenny Smith
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

[htmltmpl] Custom Errors

2002-09-09 Thread Kenny Smith
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?

[htmltmpl] Can I define a an error handling routine?

2002-09-05 Thread Kenny Smith
;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

RE: [htmltmpl] IF tag breaks V in MVC paradigm?

2002-09-03 Thread Kenny Smith
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

RE: [htmltmpl] IF tag breaks V in MVC paradigm?

2002-09-03 Thread Kenny Smith
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

RE: [htmltmpl] HTML Template in Java (was: C++)

2002-08-27 Thread Kenny Smith
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

RE: [htmltmpl] HTML Template in C++

2002-08-26 Thread Kenny Smith
> 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?

RE: [htmltmpl] HTML Template in C++

2002-08-26 Thread Kenny Smith
> 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

RE: [htmltmpl] using H-T for every page

2002-08-19 Thread Kenny Smith
/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

[htmltmpl] Strange Error during $template->output()

2002-08-13 Thread Kenny Smith
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 --

RE: [htmltmpl] Opppsss forgot: multiple templates question

2002-08-02 Thread Kenny Smith
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

RE: [htmltmpl] Re: Patches for HTML-Template-2.5.tar.gz

2002-07-24 Thread Kenny Smith
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

RE: [htmltmpl] placing .tmpl files in a subdirectory?

2002-07-02 Thread Kenny Smith
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

RE: [htmltmpl] placing .tmpl files in a subdirectory?

2002-07-02 Thread Kenny Smith
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 >

RE: [htmltmpl] TMPL_IF truth vs definition

2002-06-21 Thread Kenny Smith
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

RE: [htmltmpl] TMPL_IF truth vs definition

2002-06-21 Thread Kenny Smith
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