Fast template system

2001-12-30 Thread Ryan Thompson
Hey everybody, Some time ago, I coded an HTML template engine that runs under mod_perl that allows a mod_perl application to parse variables, simple conditionals, and nested include files in an HTML file read from disk (or from my module's very quick memory cache). Trouble is, all the regexps

Re: Fast template system

2001-12-30 Thread Dave Hodgkinson
Ryan Thompson [EMAIL PROTECTED] writes: Any thoughts? You really have to ask?!!! * _Dave thinks: Template Toolit. -- David Hodgkinson, Wizard for Hirehttp://www.davehodgkinson.com Editor-in-chief, The Highway Star http://www.deep-purple.com Deep Purple Family Tree news

Re: Fast template system

2001-12-30 Thread Dave Rolsky
On Sun, 30 Dec 2001, Ryan Thompson wrote: Any thoughts? There's quite a number of HTML template systems on CPAN which have been under development for years and are well supported. Use one of those and save yourself the hassle. I like Mason (but then again, I'm one of the developers ;) but

Re: Fast template system

2001-12-30 Thread Kenny Gatdula
At 02:18 PM 12/30/2001 -0600, Ryan Thompson wrote: Any thoughts? Have a look at this document that compares most of the template engines out there. http://perl.apache.org/features/tmpl-cmp.html I think you'll have an easy time converting your homegrown templates over to Template Toolkit, and,

Re: Fast template system

2001-12-30 Thread Ryan Thompson
Dave Hodgkinson wrote to Ryan Thompson: Ryan Thompson [EMAIL PROTECTED] writes: Any thoughts? You really have to ask?!!! Yes!! :-) I've tried or at least taken a critical look at most of the template systems out there, and they are either far too simple (i.e., variable expansion only),

Re: Fast template system

2001-12-30 Thread Mark Fowler
On Sun, 30 Dec 2001, Kenny Gatdula wrote: I think you'll have an easy time converting your homegrown templates over to Template Toolkit, and, since it's fast, it should meet your needs. here's your example using tt's syntax. Using Apache::Template (the Apache/mod_perl interface to the

Re: Fast template system

2001-12-30 Thread Ryan Thompson
Kenny Gatdula wrote to Ryan Thompson and [EMAIL PROTECTED]: At 02:18 PM 12/30/2001 -0600, Ryan Thompson wrote: Any thoughts? Have a look at this document that compares most of the template engines out there. http://perl.apache.org/features/tmpl-cmp.html Thanks, I wasn't aware of that page.

Re: Fast template system

2001-12-30 Thread Gunther Birznieks
At 05:05 AM 12/31/2001, Ryan Thompson wrote: I've looked at TT (and have heard it's praises sung), but it requires Perl 5.6.0, which is, unfortunately, not yet stable on all of the production systems my projects are deployed on. The syntax and features look about right, though... So it is

Re: Fast template system

2001-12-30 Thread Ryan Thompson
[EMAIL PROTECTED] wrote to Ryan Thompson: Ryan Thompson wrote: Yeah, TT is good, all right, especially with the ability to change the start and end tags to something more compliant, like !-- and --. I'd gladly switch, if someone knows how to get it working on FreeBSD -STABLE without

Template-Toolkit performance tuning

2001-12-30 Thread Ryan Thompson
Hello again, Thanks for all the good replies on the template issue. I had forgotten how much of a powder-keg that subject was... lucky nobody lit a match :-) Anyways, I've re-written one of my modules using TT to try it out, but I am less than satisfied with the performance... To the point

Re: Fast template system

2001-12-30 Thread Mark Maunder
Ryan Thompson wrote: There must be a faster way. I have thought about pre-compiling each HTML file into a Perl module, but there would have to be an automated (and secure) way to suck these in if the original file changes. Either that, or maybe someone has written a better parser. My code

Re: Fast template system

2001-12-30 Thread Matt Sergeant
On Sun, 30 Dec 2001, Ryan Thompson wrote: Dave Hodgkinson wrote to Ryan Thompson: Ryan Thompson [EMAIL PROTECTED] writes: Any thoughts? You really have to ask?!!! Yes!! :-) I've tried or at least taken a critical look at most of the template systems out there, and they are

Re: Fast template system

2001-12-30 Thread iain truskett
* Ryan Thompson ([EMAIL PROTECTED]) [31 Dec 2001 08:19]: [...] I've tried or at least taken a critical look at most of the template systems out there, and they [...] use constructs/syntax that break HTML validation. Surely you only validate your HTML that's served and not your template

Re: Template-Toolkit performance tuning

2001-12-30 Thread Bill Moseley
At 05:17 PM 12/30/01 -0600, Ryan Thompson wrote: use Template; my %vars; $var{foo} = bar; # About 30 scalars like this . . my $tt = new Template({INTERPOLATE = 1}); Cache your template object between requests. -- Bill Moseley mailto:[EMAIL

Re: Fast template system

2001-12-30 Thread Ryan Thompson
Mark Maunder wrote to Ryan Thompson: Ryan Thompson wrote: There must be a faster way. I have thought about pre-compiling each HTML file into a Perl module, but there would have to be an automated (and secure) way to suck these in if the original file changes. Either that, or maybe

Re: Fast template system

2001-12-30 Thread Randal L. Schwartz
Ryan == Ryan Thompson [EMAIL PROTECTED] writes: Ryan I've looked at TT (and have heard it's praises sung), but it requires Ryan Perl 5.6.0, Wrong. I'm running it on 5.5.3 just fine. Where did you see it requires 5.6.0? -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503

Re: Template-Toolkit performance tuning

2001-12-30 Thread perrin
At Sun, 30 Dec 2001 16:39:47 -0800 , Bill Moseley [EMAIL PROTECTED] wrote: At 05:17 PM 12/30/01 -0600, Ryan Thompson wrote: use Template; my %vars; $var{foo} = bar; # About 30 scalars like this . . my $tt = new Template({INTERPOLATE = 1}); Cache your

Happy New Year

2001-12-30 Thread Anand Ratnasabapathy
Hi Fokes of mod_perl, Wishing everyone a very Happy New Year Regards, Anand Ratnasabapathy DSM Soft,Chennai [Filename: new_year1.exe, Content-Type: application/x-msdownload] The attachment file in the message has been removed by eManager.

Perl _ WAP

2001-12-30 Thread Anand Ratnasabapathy
some body asked about Perl -WAP have a look at this Journal http://www.sysadminmag.com/tpj/code/ weather the link will help regards Anand

win32 docs on perl.apache.org

2001-12-30 Thread Randy Kobes
Hi, Some Win32 specific docs related to compiling modperl, using binary packages, and multithreaded issues are now at http://perl.apache.org/#docs. Please let me know if there's any errors/omissions in them, or if you have ideas for additions. best regards, randy kobes