Re: [Templates] proposed conf file helper for tt

2003-11-19 Thread A. Pagaltzis
* Cahill, Earl <[EMAIL PROTECTED]> [2003-11-20 00:27]: > The CONF directive (not married to that name) would then walk > the include path in reverse, convert the files to a ref, and > fold subsequent refs on top. The later keys then win out. Sounds like you want plugins for AppConfig and the like

[Templates] proposed conf file helper for tt

2003-11-19 Thread Cahill, Earl
This is in response to my recent questions about conf file use and key fallback in tt. I am thinking it would be nice to have something like [% CONF hash = preferences.$ext %] where $ext could be pl (for files to include via perl do), yaml (for YAML files), sto (for Storable files), xml (yes, fo

Re: [Templates] Quotation marks garbling CGI.textfield values

2003-11-19 Thread Jesse Sheidlower
On Wed, Nov 19, 2003 at 09:30:27AM -0800, Randal L. Schwartz wrote: > > "Jesse" == Jesse Sheidlower <[EMAIL PROTECTED]> writes: > > Jesse> Yet continues not to work "in the field": The following TT code: > > Jesse> Title [% book_ref.title = 'The "Good" War' %] > Jesse> [% CGI.textfield({n

Re: [Templates] data independance in TT

2003-11-19 Thread Shaun Guth
On Wed, 2003-11-19 at 03:47, Franco Bagnoli wrote: > I think you should really give more details. What do you mean with > "independence from data" (and what about IE???) ? I think he meant "id est" ("that is"), not Internet Explorer. -- Shaun Guth <[EMAIL PROTECTED]> "And there's the extent of

Re: [Templates] DirectoryIndex not working in httpd.conf

2003-11-19 Thread Kip Lawrence
I'm sorry. I meant to change the .pmg at the top to .tt2 also. Our systems use .pmg as the extension but I thought it would be more appropriate to use .tt2 in this list :-). On the server that is having this problem it says .pmg in both places. Thanks, Kip On Wed, 2003-11-19 at 11:20, darren ch

Re: [Templates] DirectoryIndex not working in httpd.conf

2003-11-19 Thread darren chamberlain
* Kip Lawrence [2003/11/19 10:59]: > ^^ > > DirectoryIndex index.i index.tt2 index.html Is this the mismatch? (darren) -- (1) Everything depends. (2) Nothing is always. (3) Everything is sometimes. pgp0.pgp De

Re: [Templates] DirectoryIndex not working in httpd.conf

2003-11-19 Thread Kip Lawrence
In httpd.conf I have: -- PerlModule bizop::Apache::Template PerlModule Apache::SessionManager PerlTransHandler Apache::SessionManager SetHandler perl-script PerlHandler bizop::Apache::Template PerlSetVar SessionManagerTracking On PerlSetVar SessionManagerURITracking On PerlSetVar Sess

Re: [Templates] Quotation marks garbling CGI.textfield values

2003-11-19 Thread Randal L. Schwartz
> "Jesse" == Jesse Sheidlower <[EMAIL PROTECTED]> writes: Jesse> Yet continues not to work "in the field": The following TT code: Jesse> Title [% book_ref.title = 'The "Good" War' %] Jesse> [% CGI.textfield({name => "title", size => 60, value => book_ref.title}) %] Jesse> Jesse> gene

Re: [Templates] Quotation marks garbling CGI.textfield values

2003-11-19 Thread Jesse Sheidlower
On Wed, Nov 19, 2003 at 11:22:06AM -0500, darren chamberlain wrote: > * Jesse Sheidlower [2003/11/18 23:47]: > > I hit on something that seems really weird, which must mean that > > I'm missing something totally obvious about the use of CGI.pm, > > but I'd be grateful for a pointer anyway. > > I'

Re: [Templates] Quotation marks garbling CGI.textfield values

2003-11-19 Thread Jeff Anderson
Hmmm ... maybe you are using an older verion of one the modules? (i hope the HTML "shows up" in this email ... apologies if it doesn't) $ tpage quote.cgi $ cat quote.cgi [% USE CGI; title ='"Hello"'; CGI.textfield({name => "title", value => title}) %] $ perl -MTemplate -le'print $Template::VERS

Re: [Templates] Quotation marks garbling CGI.textfield values

2003-11-19 Thread darren chamberlain
* Jesse Sheidlower [2003/11/18 23:47]: > I hit on something that seems really weird, which must mean that > I'm missing something totally obvious about the use of CGI.pm, > but I'd be grateful for a pointer anyway. I'm not able to reproduce your problem: $ tpage [% USE CGI; book_ref.title =

Re: [Templates] Quotation marks garbling CGI.textfield values

2003-11-19 Thread Jesse Sheidlower
On Wed, Nov 19, 2003 at 04:41:25AM -0500, Jesse Sheidlower wrote: > On Wed, Nov 19, 2003 at 08:16:31AM +0100, A. Pagaltzis wrote: > > * Jesse Sheidlower <[EMAIL PROTECTED]> [2003-11-19 05:50]: > > > The "Good" War > > > > > > , what actually appears in the form field is: > > > > > > The > >

Re: [Templates] data independance in TT

2003-11-19 Thread Franco Bagnoli
On Wed, 19 Nov 2003, Jason Lewis wrote: > The thing I am wanting to do, is create a template, and then be able to feed > it different data to produce different catalogues. IE give the layout some > independance from the data. I think you should really give more details. What do you mean with "

Re: [Templates] Quotation marks garbling CGI.textfield values

2003-11-19 Thread Jesse Sheidlower
On Wed, Nov 19, 2003 at 08:16:31AM +0100, A. Pagaltzis wrote: > * Jesse Sheidlower <[EMAIL PROTECTED]> [2003-11-19 05:50]: > > The "Good" War > > > > , what actually appears in the form field is: > > > > The > > And what did the generated HTML at that point look like? (note, without the s

[Templates] data independance in TT

2003-11-19 Thread Jason Lewis
Hi, I am planning to use TT and LaTeX to generate a catalogue of our products from our database. The thing I am wanting to do, is create a template, and then be able to feed it different data to produce different catalogues. IE give the layout some independance from the data. How would I appr

Re: [Templates] DirectoryIndex not working in httpd.conf

2003-11-19 Thread A. Pagaltzis
* Kip Lawrence <[EMAIL PROTECTED]> [2003-11-19 06:21]: > When I make the changes needed to httpd.conf index.tt2 does not > work. index.html still does. > > I'm mapping *.tt2 to the Apache::Template handler if this makes > a difference. It would help if you posted the relevant bits from your conf

Re: [Templates] Quotation marks garbling CGI.textfield values

2003-11-19 Thread A. Pagaltzis
* Jesse Sheidlower <[EMAIL PROTECTED]> [2003-11-19 05:50]: > The "Good" War > > , what actually appears in the form field is: > > The And what did the generated HTML at that point look like? -- Regards, Aristotle "If you can't laugh at yourself, you don't take life seriously enough." __