Re: [htmltmpl] HTML::Template Loop Issue

2010-04-08 Thread Shawn Scott
Wow, embarrassing I missed that? At any rate thanks for all the quick replies. On Thu, Apr 8, 2010 at 5:30 PM, Lyle wrote: > Problem with your hash scoping:- > > > my @error = @_; my @error_loop = (); > print header; > foreach (@error) { > my %error_data; > > $error_data{ERROR_DATA}

Re: [htmltmpl] HTML::Template Loop Issue

2010-04-08 Thread Sam Tregar
Put the 'my %error_data;' inside the loop. You're pushing a reference to the same hash over and over again. -sam On Thu, Apr 8, 2010 at 5:20 PM, Shawn Scott wrote: > Good Afternoon, > > I have been using HTML::Template for some time and have recently run into > an starnge issue. I have the fol

Re: [htmltmpl] HTML::Template Loop Issue

2010-04-08 Thread Alex Teslik
On Thu, 8 Apr 2010 17:20:36 -0400, Shawn Scott wrote > Good Afternoon, > > I have been using HTML::Template for some time and have recently run > into an starnge issue. I have the following code > > my @error = @_; > my @error_loop = (); > my %error_data; > print header; > foreach (@err

Re: [htmltmpl] HTML::Template Loop Issue

2010-04-08 Thread Roger Burton West
On Thu, Apr 08, 2010 at 05:20:36PM -0400, Shawn Scott wrote: >When I run this code it gives me the correct number of elements, based on >the number of errors in the loop @error array. The only issue each one is >shown as the last line pushed to the @error_loop. Well, yes. You're defining a single

Re: [htmltmpl] HTML::Template Loop Issue

2010-04-08 Thread Lyle
Problem with your hash scoping:- my @error = @_; my @error_loop = (); print header; foreach (@error) { my %error_data; $error_data{ERROR_DATA} = $_; push(@error_loop, \%error_data); } -- Download Intel® P

[htmltmpl] HTML::Template Loop Issue

2010-04-08 Thread Shawn Scott
Good Afternoon, I have been using HTML::Template for some time and have recently run into an starnge issue. I have the following code my @error = @_; my @error_loop = (); my %error_data; print header; foreach (@error) { $error_data{ERROR_DATA} = $_; push(@error_loop, \%error_data

[htmltmpl] HTML::Template - assessed on perlmonks

2009-08-03 Thread Terrence Brannon
In light of Terence Parr's paper , I've made a number of comments which have included HTML::Template: - it's not entangled - push-style templating and large files

Re: [htmltmpl] HTML::Template escaping squashes HTML entities

2008-03-24 Thread Mathew Robertson
You will be able to support more characters descriptors by using only utf8 (ie: unicode) than trying to support individual charsets ** ie: if you are resorting to entities, then you should simply use utf8 as they both print the same character. ** I can say this from experience, eg: I had a req

Re: [htmltmpl] HTML::Template escaping squashes HTML entities

2008-03-20 Thread Michael Peters
Alex Teslik wrote: > So I propose that the HTML::Template escaping does not squash HTML entities. > Something like (quick off the cuff) This seems like a very specific case to me. You are having a problem because your text contains some HTML encoded things, but not all and because of the limitati

Re: [htmltmpl] HTML::Template escaping squashes HTML entities

2008-03-19 Thread Alex Teslik
On Wed, 19 Mar 2008 22:24:36 -0500, Karen wrote > 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. I disagree. The string I'm givi

Re: [htmltmpl] HTML::Template escaping squashes HTML entities

2008-03-19 Thread Alex Teslik
I completely agree. Unfortunately I've inherited a lot of the code and it needs to support all charsets. :( On Thu, 20 Mar 2008 14:31:54 +1100, Mathew Robertson wrote > Have you tried using utf8 as the encoding? You will get far more > millage out of utf8 than using entities. > > regards, > Mat

Re: [htmltmpl] HTML::Template escaping squashes HTML entities

2008-03-19 Thread Mathew Robertson
Have you tried using utf8 as the encoding? You will get far more millage out of utf8 than using entities. regards, Mathew Alex Teslik wrote: Hello, I'm developing an app where there are some strings that have HTML entities in them, such as: This is a "Tést" These strings need to go into

Re: [htmltmpl] HTML::Template escaping squashes HTML entities

2008-03-19 Thread Karen
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

[htmltmpl] HTML::Template escaping squashes HTML entities

2008-03-19 Thread Alex Teslik
Hello, I'm developing an app where there are some strings that have HTML entities in them, such as: This is a "Tést" These strings need to go into a template that is displayed in the iso-8859-1 character set. These strings need to be html escaped so that the quotes don't break things. When I p

Re: [htmltmpl] HTML::Template with simplified/automated fill in from database.

2008-02-24 Thread Mathew Robertson
Hi Ronald, I am looking to generate easy visualizations of objects serialized in a database USING the underlying model. It sounds like you're talking about a glue between "model" components like dbix::class, class::dbi, etc? Close. Yes a glue layer between HTML::Template and a databa

Re: [htmltmpl] HTML::Template with simplified/automated fill in from database.

2008-02-23 Thread Ronald Schmidt
Mark Fuller wrote: On Sat, Feb 23, 2008 at 5:13 AM, Ronald Schmidt <[EMAIL PROTECTED]> wrote: I am looking to generate easy visualizations of objects serialized in a database USING the underlying model. It sounds like you're talking about a glue between "model" components like dbix:

Re: [htmltmpl] HTML::Template with simplified/automated fill in from database.

2008-02-23 Thread Mark Fuller
On Sat, Feb 23, 2008 at 5:13 AM, Ronald Schmidt <[EMAIL PROTECTED]> wrote: > I am looking to generate easy visualizations of > objects serialized in a database USING the underlying model. It sounds like you're talking about a glue between "model" components like dbix::class, class::dbi, etc? Wha

Re: [htmltmpl] HTML::Template with simplified/automated fill in from database.

2008-02-23 Thread Ronald Schmidt
Sébastien Aperghis-Tramoni wrote: > Ronald Schmidt wrote: > If I understand correctly your question, you probably want to write a > producer module for SQL::Translator, the set of modules behind SQL Fairy. > » http://search.cpan.org/dist/SQL-Translator/ > » http://sqlfairy.sourceforge.net/ As

Re: [htmltmpl] HTML::Template with simplified/automated fill in from database.

2008-02-22 Thread Sébastien Aperghis-Tramoni
Ronald Schmidt wrote: > Given the data model below, does anyone know of a package or module > that > would generate code for, or fill in, an HTML::Template like that > provided below the database ddl? If not, would there be interest in > such a module if I could create it? If I understand corr

[htmltmpl] HTML::Template with simplified/automated fill in from database.

2008-02-22 Thread Ronald Schmidt
Given the data model below, does anyone know of a package or module that would generate code for, or fill in, an HTML::Template like that provided below the database ddl? If not, would there be interest in such a module if I could create it? Ron create table books ( book_idinteger,

Re: [htmltmpl] HTML::Template tutorials

2007-08-01 Thread Chris Henden
Thanks to all for offering suggestions, they've been very useful. Chris On 1 Aug 2007, at 17:22, Philip Tellis wrote: > On 01/08/07, Chris Henden <[EMAIL PROTECTED]> wrote: >> Hi all, >> I'm looking for a nice tutorial on HTML::Template authoring, aimed at >> a client-side developer, without any

Re: [htmltmpl] HTML::Template tutorials

2007-08-01 Thread Karen
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

[htmltmpl] HTML::Template tutorials

2007-08-01 Thread Chris Henden
Hi all, 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...). All the ones I can find have explanations of the tags, and loops - but mixed up with confusing talk about arrays etc, whic

Re: [htmltmpl] HTML::Template support for Unicode

2007-07-22 Thread Erik van Konijnenburg
On Sat, 2007-07-21 at 18:15 +0200, Sven Neuhaus wrote: > Erik van Konijnenburg schrieb: > > On Fri, 2007-07-20 at 09:58 +0200, Sven Neuhaus wrote: > >> Erik van Konijnenburg schrieb: > >>> This is to propose for inclusion in HTML::Template a patch that > >>> adds unicode support. > >>> If the templ

Re: [htmltmpl] HTML::Template support for Unicode

2007-07-21 Thread Sven Neuhaus
Erik van Konijnenburg schrieb: > On Fri, 2007-07-20 at 09:58 +0200, Sven Neuhaus wrote: >> Erik van Konijnenburg schrieb: >>> This is to propose for inclusion in HTML::Template a patch that >>> adds unicode support. >>> If the template file happens to contain Unicode already, this breaks: >>> the b

Re: [htmltmpl] HTML::Template support for Unicode

2007-07-20 Thread Erik van Konijnenburg
On Fri, 2007-07-20 at 09:58 +0200, Sven Neuhaus wrote: > Erik van Konijnenburg schrieb: > > This is to propose for inclusion in HTML::Template a patch that > > adds unicode support. > > > If the template file happens to contain Unicode already, this breaks: > > the bytes making up an UTF-8 charact

Re: [htmltmpl] HTML::Template support for Unicode

2007-07-20 Thread Sven Neuhaus
Erik van Konijnenburg schrieb: > This is to propose for inclusion in HTML::Template a patch that > adds unicode support. > If the template file happens to contain Unicode already, this breaks: > the bytes making up an UTF-8 character are fed to the Latin => unicode > transformation, and you end up

[htmltmpl] HTML::Template support for Unicode

2007-07-19 Thread Erik van Konijnenburg
This is to propose for inclusion in HTML::Template a patch that adds unicode support. The 2.8 release of Html::Template opens templates as raw files. That means every byte is interpreted as an individual character. If a parameter contains wide characters (katakana, or accented latin characters fo

Re: [htmltmpl] Html-template-users Digest, Vol 13, Issue 1

2007-06-01 Thread Barry Callahan
Actually, Mathew, I'd be interested in that, too. Rather than posting the patch and tests to the list, do you happen to have a webpage that you can upload it to? That way, you can just post a link to it. > -- > > Message: 4 > Date: Fri, 01 Jun 2007 09:11:58 +1000 > Fr

Re: [htmltmpl] HTML::Template::Expr bug and patch for simple nameexpressions

2007-04-10 Thread David Kaufman
Hi Tim, Tim Walters <[EMAIL PROTECTED]> wrote: > We've discovered a problem... [and sent a patch and a test] Nice catch! > It would be great if this could be folded into the official > distribution. Finding and fixing *and* writing the test... I'm guessing your contribution will be welcomed!

[htmltmpl] HTML::Template::Expr bug and patch for simple name expressions

2007-04-10 Thread Tim Walters
Greetings, We've discovered a problem with the handling of simple expressions in HTML::Template::Expr 0.07. Briefly, if a variable "foo" is defined, an expression with just the variable name will fail. For example, both of these tags fail: Yes This used to work in version 0.04. We have a wor

[htmltmpl] html-template and javascript

2006-10-16 Thread Raful Mr Mitchell H
All: I am having difficulty with my java script. If I place the code directly on my template, it works. If I place the reference to the .js file in my head.tmpl (which creates the page's head and is "inluded" on all other pages), it does not run. Any suggestions? Thanks, Mitch Mitch Raful

Re: [htmltmpl] html template loops (hash of a hash)

2006-08-30 Thread Karen
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

Re: [htmltmpl] html template loops (hash of a hash)

2006-08-30 Thread Di Domenico, Michael
ey}->[0]->{hashkey} = "aa" -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Covert, Jake (JSC.) Sent: Wednesday, August 30, 2006 1:27 PM To: html-template-users@lists.sourceforge.net Subject: [htmltmpl] html template loops (hash of a hash) I

[htmltmpl] html template loops (hash of a hash)

2006-08-30 Thread Covert, Jake (JSC.)
I'm a bit new to html templates, so I apologize in advance if I ask some obvious questions. I'm working on an HTML::Template loop issue that I can't quite seem to get working just right. Instead of an array of hashes, I'm using a hash of hashes. When I try and run it, it gives me this error:

Re: [htmltmpl] HTML::Template::output() : Unknown item in parse_stack : HASH at /usr/local/share/perl/5.8.8/HTML/Template.pm line 2781

2006-06-27 Thread Alexey Melezhik
Thanx! We have just updated to 2.8 VERSION, hopefully it works out "unknown item in parsed stack" error. I'll let you know if we still have problems with this. 2006/6/9, Sam Tregar <[EMAIL PROTECTED]>: > On Fri, 9 Jun 2006, Alexey Melezhik wrote: > > > HTML::Template INST_VERSION 2.6 > > Please up

Re: [htmltmpl] HTML::Template::output() : Unknown item in parse_stack : HASH at /usr/local/share/perl/5.8.8/HTML/Template.pm line 2781

2006-06-09 Thread Sam Tregar
On Fri, 9 Jun 2006, Alexey Melezhik wrote: > HTML::Template INST_VERSION 2.6 Please upgrade to 2.8. I fixed a couple bugs that could cause this problem since 2.6. If you can replicate the problem with 2.8 then please send me your template. Thanks! -sam __

Re: [htmltmpl] HTML::Template::output() : Unknown item in parse_stack : HASH at /usr/local/share/perl/5.8.8/HTML/Template.pm line 2781

2006-06-09 Thread Jamie Krasnoo
Can you put up or attach the template you're using? Jamie On 6/9/06, Alexey Melezhik <[EMAIL PROTECTED]> wrote: > I can't fix it! > == > My options: > > > my $template = HTML::Template->new ( > > > filename => $template_path, >

[htmltmpl] HTML::Template::output() : Unknown item in parse_stack : HASH at /usr/local/share/perl/5.8.8/HTML/Template.pm line 2781

2006-06-09 Thread Alexey Melezhik
I can't fix it! == My options: my $template = HTML::Template->new ( filename => $template_path, path => $opt->{TMPL_ROOT_DIR}, die_on_bad_params => 0, global_vars => 1, loop_

Re: [htmltmpl] HTML::Template::Compiled compatibility analyzed

2005-12-24 Thread Octavian Rasnita
rom: "Mark Stosberg" <[EMAIL PROTECTED]> To: Sent: Saturday, December 24, 2005 23:11 PM Subject: [htmltmpl] HTML::Template::Compiled compatibility analyzed > Some of you may be interested in my notes I wrote up about > HTML::Template::Compiled's compatibility with HTML::Te

[htmltmpl] HTML::Template::Compiled compatibility analyzed

2005-12-24 Thread Mark Stosberg
Some of you may be interested in my notes I wrote up about HTML::Template::Compiled's compatibility with HTML::Template: http://www.perlmonks.org/?node_id=518934 Mark -- http://mark.stosberg.com/ --- This SF.net email is sponsored by:

Re: [htmltmpl] HTML::Template - need to merge the columns of a table

2005-12-14 Thread Senthil Nathan
TD tag   ( or 4 or how ever many columns you want to span) -Original Message-From: Senthil Nathan [mailto:[EMAIL PROTECTED]] Sent: Thursday, 15 December 2005 08:59To: [EMAIL PROTECTED]Cc: Html-template-users@lists.sourceforge.netSubject: Re: [htmltmpl] HTML::Template - need to

RE: [htmltmpl] HTML::Template - need to merge the columns of a table

2005-12-14 Thread Dan Horne
: Thursday, 15 December 2005 08:59To: [EMAIL PROTECTED]Cc: Html-template-users@lists.sourceforge.netSubject: Re: [htmltmpl] HTML::Template - need to merge the columns of a tablehey,thats not the one i expect.i tell the first row with the spacing as some amount of % and then check for the

Re: [htmltmpl] HTML::Template - need to merge the columns of a table

2005-12-14 Thread Senthil Nathan
-Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Senthil NathanSent: Thursday, 15 December 2005 08:19To: Html-template-users@lists.sourceforge.netSubject: [htmltmpl] HTML::Template - need to merge the columns of a tableHi All,I need t

RE: [htmltmpl] HTML::Template - need to merge the columns of a table

2005-12-14 Thread Dan Horne
Title: Message       -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Senthil NathanSent: Thursday, 15 December 2005 08:19To: Html-template-users@lists.sourceforge.netSubject: [htmltmpl] HTML::Template - need to merge the

[htmltmpl] HTML::Template - need to merge the columns of a table

2005-12-14 Thread Senthil Nathan
Hi All,I need to merge the columns of a table during runtime in HTNL Template.I have a bool variable set, whenever the cells needs to be merged.So, chking for that var if its set, need to merge the cells else need to have the cells as defined earlier. How this can be done in HTML::Template??ThanksS

Re: [htmltmpl] HTML Template - fatal error in loop output

2005-11-11 Thread Brad Baxter
On 11/10/05, Senthil Nathan <[EMAIL PROTECTED]> wrote:> Hi Roger,> > Thanks. That works now.> > This is how I did it,>   foreach $instance(@diagnosis) >   {> my %row = (>   line => $instance> ); > push(@diag, \%row);>  

Re: [htmltmpl] HTML Template - fatal error in loop output

2005-11-10 Thread Senthil Nathan
Hi Roger,Thanks. That works now.This is how I did it,  foreach $instance(@diagnosis)  {    my %row = (  line => $instance    );     push(@diag, \%row);  }  $template->param(dign_loop => [EMAIL PROTECTED]);So, Can't

Re: [htmltmpl] HTML Template - fatal error in loop output

2005-11-10 Thread Roger Burton West
On Thu, Nov 10, 2005 at 05:57:51PM +0530, Senthil Nathan wrote: >HTML::Template->output() : fatal error in loop output : HTML::Template : >Attempt to get nonexistent parameter 'one' - this parameter name >doesn'tmatch any declarations in the template file : >(die_on_bad_params set => 1) >at /usr/c

[htmltmpl] HTML Template - fatal error in loop output

2005-11-10 Thread Senthil Nathan
Hi All,I am using an HTML::Template module like this,perl script - contains,    @diagnosis = ( "ONE", "TWO", "THREEE" );    $template->param(dign_loop => [EMAIL PROTECTED]); And template, Im not getting the array being displayed. This is the error I get when I run it, HTML::Templat

Re: [htmltmpl] HTML::Template and XHTML

2005-10-28 Thread Chris Beck
Rumour has it Mathew Robertson, on or about 25.Oct.2005 19:48, whispered: > you can do this with a filter: > > my $match = qr/(<[Tt][Mm][Pp][Ll]_[^>]+)\/>/; > my $filter = sub { > my $text_ref = shift; > $$text_ref =~ s/$match/$1>/g; > }; Hi Mathew, thanks for the help. I am already using filt

Re: [htmltmpl] HTML::Template and XHTML

2005-10-25 Thread Mathew Robertson
you can do this with a filter: my $match = qr/(<[Tt][Mm][Pp][Ll]_[^>]+)\/>/; my $filter = sub { my $text_ref = shift; $$text_ref =~ s/$match/$1>/g; }; $match is the regex used to find tags. Then instantiate H::T with the 'filter' option. Hope this helps, Mathew Chris Beck wrote: Hey all,

[htmltmpl] HTML::Template and XHTML

2005-10-25 Thread Chris Beck
Hey all, Is there any way I could request that XHTML style also be valid? Cheers, Chris -- Chris Beck - http://pacanukeha.blogspot.com "Privacy is what they take away when they want to torture you.” -- The Earl of Spencer --- This SF.Net

[htmltmpl] HTML::Template::Plugin::Dot method call fails

2005-10-12 Thread Dan Horne
Hi all, First off, apologies if this is not the correct place to discuss HTML::Template::Plugin::Dot - if there is an alternative, please let me know. I came across a problem when I tried using CGI::Application::Plugin::HTDot - I couldn't use a parameter with a dot in its name as per the HTML::Te

Re: [htmltmpl] HTML Template and Cookies

2005-09-27 Thread Johan Kuuse
I think you mixed up the 'header' concept. The meta tags go in the HTML header. The cookies go in the HTTP header, which is different from the HTML header, and out of the scope of HTML::Template. I use CGI::Application as my framework. I made a small tutorial using CGI::Application and HTML::Templ

[htmltmpl] HTML Template and Cookies

2005-09-27 Thread Chris Beck
Hey all, I am used to using CGI to set cookies and other header objects, but I am finding that my HTML Template templates are complete HTML documents. What is the standard HTML Template way of doing this? I could define a template var for various meta tags and content types, &c, but how do peop

[htmltmpl] HTML::Template include security

2005-08-31 Thread Mitar
Hi! I think that it would be great if HTML::Template would have two additional "Filesystem Options". One would be to allow only relative filenames (that is filenames without "/" and "\" characters). So that user could not use absolute filenames. Other would be to check if the resulting file (fil

Re: [htmltmpl] HTML::Template for WML

2005-06-29 Thread Alex Kapranoff
* Mathew Robertson <[EMAIL PROTECTED]> [June 29 2005, 02:37]: > > As far as I understand the only way to add an ESCAPE filter is to > > hack _parse method (subclassing or just patching). Looks like > > ESCAPE filters are all hardwired and spread over the code of the method. > > > > Did anyone face

Re: [htmltmpl] HTML::Template for WML

2005-06-28 Thread Mathew Robertson
> HTML::Template works for anything as you all know. The trouble I'm > having is that WML needs more escaping than good old HTML (WML turned > out to be a templating language in itself with user agent performing > simple variable substituition in the document). > > As far as I understand the only

[htmltmpl] HTML::Template for WML

2005-06-28 Thread Alex Kapranoff
Good day. HTML::Template works for anything as you all know. The trouble I'm having is that WML needs more escaping than good old HTML (WML turned out to be a templating language in itself with user agent performing simple variable substituition in the document). As far as I understand the only w

Re: [htmltmpl] HTML::Template and Locale::Maketext

2005-05-27 Thread Hugues de Mazancourt
Hi, Just about tags in the template file: don't forget that you can use H::T's 'filter' option and thus define your own syntax. Personally, I've turned all the into a {%... %} notation, so that '' now reads '{%VAR NAME="foo"%}' in my templates. This works in Dreamweaver (at least a my trans

Re: [htmltmpl] HTML::Template and Locale::Maketext

2005-05-26 Thread Mathew Robertson
> The only real issue that the programmer has to do is to set a few extra > template variables: > > TMPL_VAR document_charset > TMPL_VAR document_direction > TMPL_VAR document_language > TMPL_VAR document_direction_default > TMPL_VAR document_direction_inverse > > The first three should

Re: [htmltmpl] HTML::Template and Locale::Maketext

2005-05-26 Thread Mathew Robertson
Translation issues aside, one of the best parts of storing translations in a database is that you can quite easily build a web interface to the database table. You write a script which greps your source-code/templates so that it inserts the new strings, and deletes any unused ones. This works

Re: [htmltmpl] HTML::Template and Locale::Maketext

2005-05-26 Thread Markus Spring
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johan Kuuse schrieb: > Of course, this discussion about tags for the web designer isn't > only an issue for multilingüal web pages, but it is where it comes to an > extreme, as there is no common text at all in the HTML document, only > template ta

Re: [htmltmpl] HTML::Template and Locale::Maketext

2005-05-26 Thread Mark A. Fuller
> Anyone has used HTML::Template and Locale::Maketext together? Did you search the archives? I wrote a rather lengthy explanation of how to do it (with the help of Cees Hek). I agree with the various observations about how language-specific copies of templates become unmanageable. You also los

Re: [htmltmpl] HTML::Template and Locale::Maketext

2005-05-26 Thread Johan Kuuse
: > > > > > {{Hello, world!}}> > ...and so on. > > I didn't had time to implement it, but I guess this could work. Did someone > try this ? > > Best, > > Hugues > > > - Original Message - > From: "Mathew Robertson"

Re: [htmltmpl] HTML::Template and Locale::Maketext

2005-05-26 Thread Hugues de Mazancourt
lement it, but I guess this could work. Did someone try this ? Best, Hugues - Original Message - From: "Mathew Robertson" <[EMAIL PROTECTED]> To: "Johan Kuuse" <[EMAIL PROTECTED]> Cc: Sent: Thursday, May 26, 2005 12:50 PM Subject: Re: [htmltmpl] HTML::Tem

Re: [htmltmpl] HTML::Template and Locale::Maketext

2005-05-26 Thread Mathew Robertson
s for some situtations). You can find this information on my website: http://members.optusnet.com.au/mathew Hope this helps, Mathew - Original Message - From: "Johan Kuuse" <[EMAIL PROTECTED]> To: ; Sent: Thursday, May 26, 2005 3:40 AM Subject: [htmltmpl] HTML::Tem

Re: [htmltmpl] HTML::Template and Locale::Maketext

2005-05-25 Thread Markus Spring
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Johan, I stood in front of the same problem 2 years ago and came up with a solution that combines (in my eyes) the best of HTML::Template and Locale::Maketext. The principle is as such: The html-code of the template is parsed by HTML::Parser. Str

[htmltmpl] HTML::Template and Locale::Maketext

2005-05-25 Thread Johan Kuuse
Hi, This is a long post, so feel free to stop reading now. :-) Anyone has used HTML::Template and Locale::Maketext together? Or HTML::Template in any I18N project? My doubts are mostly what approach I should use. The application I planning to start is not that big, but I always liked separating

Re: [htmltmpl] HTML::Template: Installation Problem on Darwin/Mac OS X

2005-02-26 Thread Cees Hek
Sam Tregar wrote: The best workaround is to just switch to the file_cache. In most cases it's just as fast as shared_cache due to the OS caching file access and it's a heck of a lot easier to work with (no arbitrary limits, no need for special tools to clear the cache, etc). I would seconds Sam's

Re: [htmltmpl] HTML::Template: Installation Problem on Darwin/Mac OS X

2005-02-26 Thread Sam Tregar
On Sat, 26 Feb 2005, James Keenan wrote: > But the other is IPC::ShareLite (v0.06 or later) > (http://search.cpan.org/~maurice/IPC-ShareLite-0.09/). This module has XS > code (there be goblins). My attempt to install it on Darwin failed. I can't > say why, but perhaps this quotation from the IP

[htmltmpl] HTML::Template: Installation Problem on Darwin/Mac OS X

2005-02-26 Thread James Keenan
I was unable to locate a discussion of this problem in the list archives (http://sourceforge.net/mailarchive/forum.php?forum_id=9830), so I would like to pose it to the list. Recently I installed HTML::Template on my iBook (Mac OS X 10.3 Darwin). In my first attempt, I elected *not* to install

Re: [htmltmpl] HTML::Template Caching Problems

2005-01-12 Thread Sam Tregar
On Wed, 12 Jan 2005, Patrick Humpal wrote: > I have two standard templates that all my pages use: headers.shtml > and footers.shtml. However, it seems as if one of my CGI files is > reading the headers.shtml file from an older cached version while my > other CGI file is reading the the more recen

[htmltmpl] HTML::Template Caching Problems

2005-01-12 Thread Patrick Humpal
I have two standard templates that all my pages use: headers.shtml and footers.shtml. However, it seems as if one of my CGI files is reading the headers.shtml file from an older cached version while my other CGI file is reading the the more recent one. I've checked directories containing both

[htmltmpl] HTML::Template::Compile - anonymous sub version

2004-10-07 Thread Bob Diss
Here's the code for the version of H::T that cross-compiles the stack language into an anonymous sub.  I've see a significant improvement in rendering speed using this package over stock H::T.  Would like to offer this up for review / discussion.   Thanks!   - Bob Diss   Do you Yahoo!? Y! Messen

Re: [htmltmpl] HTML::Template::Compile - anonymous sub and eval H::T

2004-10-06 Thread Mathew Robertson
what a good idea... could you make the code available?   Mathew - Original Message - From: Bob Diss To: [EMAIL PROTECTED] Sent: Thursday, October 07, 2004 7:06 AM Subject: [htmltmpl] HTML::Template::Compile - anonymous sub and eval H::T An item I ran into

[htmltmpl] HTML::Template::Compile - anonymous sub and eval H::T

2004-10-06 Thread Bob Diss
An item I ran into lately is a desire to squeeze even more performance out of H::T.  Since I'm in a mod_perl environment, I typically load up a handfull of templates and then render them over and over again.  To help this out, I built a version of H::T that cross-compiles the stack-based code into

Re: [htmltmpl] HTML::Template

2004-08-03 Thread Michael Peters
Robert wrote: Hi list, I am testing HTML::Template with a sample script, I can run the script from command line which is working fine but when I run it from browser (http://webserver/cgi-bin/test1-cgi) I am getting the following error Internal Server Error The server encountered an internal

[htmltmpl] HTML::Template

2004-08-03 Thread Robert
Hi list,   I am testing HTML::Template with a sample script, I can run the script from command line which is working fine but when I run it from browser (http://webserver/cgi-bin/test1-cgi) I am getting the following error   Internal Server ErrorThe server encountered an internal error or misconfi

Re: [htmltmpl] HTML::Template and filesystem ACL's

2004-07-30 Thread Sébastien Aperghis-Tramoni
Sam Tregar wrote: On Fri, 30 Jul 2004, Sébastien Aperghis-Tramoni wrote: perlfunc recommends to C for better results when running on a filesystem with ACL support. The filetest pragma seems to be available since Perl 5.6. Is it lexical, or could a user use the pragma in their code and fix HTML::T

Re: [htmltmpl] HTML::Template and filesystem ACL's

2004-07-29 Thread Sam Tregar
On Fri, 30 Jul 2004, Sébastien Aperghis-Tramoni wrote: > perlfunc recommends to C for better results when > running on a filesystem with ACL support. The filetest pragma seems to be > available since Perl 5.6. Is it lexical, or could a user use the pragma in their code and fix HTML::Template's fi

Re: [htmltmpl] HTML::Template and filesystem ACL's

2004-07-29 Thread Sébastien Aperghis-Tramoni
Sam Tregar wrote: On Fri, 30 Jul 2004, Aleksey Serba wrote: The reason is "-r $filename" expression - it doesn't work with ACL. ST> Really? Why not? See test in the bottom of my message I don't have a system with "ACL", whatever that is, ACL are Access Control Lists. They are available with most

Re[2]: [htmltmpl] HTML::Template and filesystem ACL's

2004-07-29 Thread Sam Tregar
On Fri, 30 Jul 2004, Aleksey Serba wrote: > > >> The reason is "-r $filename" expression - it doesn't work with ACL. > ST> Really? Why not? > See test in the bottom of my message I don't have a system with "ACL", whatever that is, so I can't run your test. Maybe you should post a message on ht

Re[2]: [htmltmpl] HTML::Template and filesystem ACL's

2004-07-29 Thread Aleksey Serba
>> The reason is "-r $filename" expression - it doesn't work with ACL. ST> Really? Why not? See test in the bottom of my message Regards, Aleksey --- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com

Re: [htmltmpl] HTML::Template and filesystem ACL's

2004-07-29 Thread Sam Tregar
On Thu, 29 Jul 2004, Aleksey Serba wrote: > The reason is "-r $filename" expression - it doesn't work with ACL. Really? Why not? That's the most obvious way to see if a file is readable in Perl. > It's the common perl problem or we could use another expression to > determine readable file or n

[htmltmpl] HTML::Template and filesystem ACL's

2004-07-29 Thread Aleksey Serba
Hello! HTML::Template failed trying to process file with ACL ( can't read _readable_ file ) The reason is "-r $filename" expression - it doesn't work with ACL. It's the common perl problem or we could use another expression to determine readable file or not? What's the best way to fix it?

Re: [htmltmpl] HTML::Template v2.7 is Coming!

2004-06-18 Thread Gabor Szabo
On Fri, 18 Jun 2004, Sam Tregar wrote: > > That's right, but I think it runs on a delayed update from the real > CVS source. yes, I got it a few hours later. > > I am using this as I had a number of cases when suddenly part of my tests > > did not run and I did not get any warning about this. > >

Re: [htmltmpl] HTML::Template v2.7 is Coming!

2004-06-18 Thread Sam Tregar
On Fri, 18 Jun 2004, Gabor Szabo wrote: > On Fri, 18 Jun 2004, Sam Tregar wrote: > > > Alright, this sounds fine to me. I'm commiting this now. > > Oh thanks > Is this suposed to be the correct CVS ? > http://cvs.sourceforge.net/viewcvs.py/html-template/HTML-Template/ > > I am asking as I ha

Re: [htmltmpl] HTML::Template v2.7 is Coming!

2004-06-18 Thread Gabor Szabo
On Fri, 18 Jun 2004, Sam Tregar wrote: > Alright, this sounds fine to me. I'm commiting this now. Oh thanks Is this suposed to be the correct CVS ? http://cvs.sourceforge.net/viewcvs.py/html-template/HTML-Template/ I am asking as I have just checked it out again (which took me 30 minutes)

Re: [htmltmpl] HTML::Template v2.7 is Coming!

2004-06-18 Thread Sam Tregar
On Fri, 18 Jun 2004, Gabor Szabo wrote: > I mean, keep the old test suit and add a new one covering both the old > things and additional things. > > I am suggesting the following: copy the test.pl file in t/99-old.t or > some similar name and change the minimum necessary to cleanly run. Alright,

Re: FYI - [sam@tregar.com: [htmltmpl] HTML::Template v2.7 is Coming!]

2004-06-18 Thread Chisel Wright
On Fri, Jun 18, 2004 at 09:24:01AM +0100, Chisel Wright wrote: > FYI I an such a tool. Too early, sent to wrong email alias. *DOH* -- e: [EMAIL PROTECTED] | Get pleasure out of the little w: http://www.herlpacker.co.uk/ | things in life. Stand on an ant. gpg: D167E7FE

FYI - [sam@tregar.com: [htmltmpl] HTML::Template v2.7 is Coming!]

2004-06-18 Thread Chisel Wright
FYI -- e: [EMAIL PROTECTED] | Life would be so much easier if we w: http://www.herlpacker.co.uk/ | just had the source code. gpg: D167E7FE | --- Begin Message --- Hello all. I'm sure it will come as a great shock, but I'm planning to make a new release of

Re: [htmltmpl] HTML::Template v2.7 is Coming!

2004-06-18 Thread Gabor Szabo
On Thu, 17 Jun 2004, Sam Tregar wrote: > I don't think so. It's not that I mind a Test::More dependency - lots > of my modules use Test::More - but that I'm not interested in > investing the time it would take a to be sure that the new test suite > was as good as the old one. Since the tests don

Re: [htmltmpl] HTML::Template v2.7 is Coming!

2004-06-17 Thread Sam Tregar
On Fri, 18 Jun 2004, Mathew Robertson wrote: > > Ultimately HTML::Template v2 doesn't offer much in terms of official > > support for sub-classes and extensions. That's a deficiency I intend > > to address in the perpetually-delayed v3. > > One of the changes that I made, was so as to support su

Re: [htmltmpl] HTML::Template v2.7 is Coming!

2004-06-17 Thread Mathew Robertson
> > Would you prefer: > > a) seperate patches per piece of functionality > > Yes. That's probably a lot of work though, so you might want to run > them by me and let me save you the trouble of creating patches for the > ones I won't take. ;) [snip] > Ultimately HTML::Template v2 doesn't offer

Re: [htmltmpl] HTML::Template v2.7 is Coming!

2004-06-17 Thread Sam Tregar
On Fri, 18 Jun 2004, Mathew Robertson wrote: > Would you prefer: > a) seperate patches per piece of functionality Yes. That's probably a lot of work though, so you might want to run them by me and let me save you the trouble of creating patches for the ones I won't take. ;) -sam

Re: [htmltmpl] HTML::Template v2.7 is Coming!

2004-06-17 Thread Sam Tregar
On Fri, 18 Jun 2004, Mathew Robertson wrote: > > Yup, that's right. It is private. But since when has that stopped Cees? > > :-) > > ok - I was under the impression that the purpose of the _cache_key > method was to all a custom cache key capability - in which case the > method should be public.

Re: [htmltmpl] HTML::Template v2.7 is Coming!

2004-06-17 Thread Mathew Robertson
> It's that first one that's stimulating this release. However, I know > a number of you have pending bugs and (shudder) new features that > you'd like to see addressed in the next release. Now is the time to > get them in for 2.7. > > If you're submitting a bug report please include a complete

Re: [htmltmpl] HTML::Template v2.7 is Coming!

2004-06-17 Thread Mathew Robertson
> > hmm... general perl-ism is to use a leading underscore to refer to > > the method call as being private. > > Yup, that's right. It is private. But since when has that stopped Cees? :-) ok - I was under the impression that the purpose of the _cache_key method was to all a custom cache key

  1   2   >