Re: templating system opinions (axkit?)

2003-07-28 Thread Andy Wardley
Matt Sergeant wrote: At it's core, XML is a very elegant syntax for defining a rich dataset of nodes It's a syntax for defining a dataset of nodes that all conform to XML's ideas about what a dataset of nodes looks like. I'm not convinced about rich or elegant. :-) and you find

Re: [OT] About XML and Petal (was Re: templating system opinions (axkit?))

2003-07-28 Thread Andy Wardley
Jean-Michel Hiver wrote: something like: div dir=!--VAR language_dir -- !--VAR some_content-- /div Which is completely impossible to validate and IMHO very hard to read. Agreed. The following is easier to read, IMHO, and is also valid XML markup. div dir=[% language_dir %] [%

Re: MS SQL Server

2003-06-18 Thread Andy Wardley
Matt Sergeant wrote: Anyone got any experience of doing MS SQL Server from mod_perl on Linux (via the FreeTDS drivers)? Only a little, but I know that Simon Matthews ([EMAIL PROTECTED]) has done a lot. ISTR he switched from Postgres to SQL Server (from mod_perl front end, via FreeTDS) and

Re: OSCON ideas - MVC talk

2003-01-10 Thread Andy Wardley
On Thu, Jan 09, 2003 at 09:22:35AM -0700, Rob Nagler wrote: So how about a panel discussion. I would gladly represent the MVC camp. :-) (see http://www.bivio.biz/hm/why-bOP for my position.) And I would gladly represent the MVC-is-not-the-final-word camp :-) A

Re: OSCON ideas - MVC talk

2003-01-09 Thread Andy Wardley
Ask Bjoern Hansen wrote: I am planning to submit a proposal for a introduction talk on MVC in a web environment. [...] Like Perrin I would like feedback on the idea before putting in my proposal. I like the sound of it, but I should warn you that I have a personal crusade against

Re: separating C from V in MVC

2002-06-07 Thread Andy Wardley
On Thu, Jun 06, 2002 at 08:15:24PM -0600, Rob Nagler wrote: The issue here is not whether TT is a bad approach, but rather why the syntax is not Perl. One reason is that I like to have minimal syntax in the templates. One argument often used is that non-programmer find it easier to say

Re: separating C from V in MVC

2002-06-06 Thread Andy Wardley
On Thu, Jun 06, 2002 at 12:02:47AM -0600, Rob Nagler wrote: These are the reserve words of TT: [...] Looks an awful lot like the same keywords in any general-purpose programming language. Yep, I agree. You can use it like a programming language and it gives you more than enough rope to hang

Separating Aspects (Re: separating C from V in MVC)

2002-06-05 Thread Andy Wardley
Continuing from the thread on the modperl mailing list: On Sun, Jun 02, 2002 at 05:04:01PM -0400, Sam Tregar wrote: I don't think the standard HTML::Template has support for formatting numbers, dates, etc. And thank the sweet lord it doesn't! HTML::Template is a do one thing and do it

Re: separating C from V in MVC

2002-06-05 Thread Andy Wardley
On Thu, May 30, 2002 at 05:42:23PM -0400, Jesse Erlbaum wrote: It has been my experience that applying a design pattern such as MVC is not a panacea. [...] My point: My code isn't good because I apply some pattern to it. It may be good, and it may resemble a pattern -- but those two things

Re: separating C from V in MVC

2002-06-05 Thread Andy Wardley
On Fri, May 31, 2002 at 12:21:45PM -0400, Jesse Erlbaum wrote: It's the addition tricks which bug me out. With those two words you establish the mother of all slippery slopes to architecture oblivion. True. And in your Perl code you can also write all sorts of dangerous code that totally

Re: Excellent article on Apache/mod_perl at eToys

2001-10-26 Thread Andy Wardley
On Tue, Oct 23, 2001 at 12:02:00PM -0500, Dave Rolsky wrote: Perl Jewels (Joules?) Perl Oysters :-) A

Re: [RFC] New Apache Module, comments and name suggestions requested

2001-01-02 Thread Andy Wardley
re into the Template::* namespace if you like. Template::Grover or something similar? Cheers A -- Andy Wardley [EMAIL PROTECTED] Signature regenerating. Please remain seated. [EMAIL PROTECTED] For a good time: http://www.kfs.org/~abw/

Re: [ANNOUNCE] ApacheCon USA 2001: Call For Papers

2000-11-14 Thread Andy Wardley
clues in such matters. Apologies to the larger majority who don't live in London - you'll have to wait until next April. :-) More details from london.pm.org A -- Andy Wardley [EMAIL PROTECTED] Signature regenerating. Please remain seated. [EMAIL PROTECTED] For a good time: http

Re: dynamic vs. mostly static data

2000-11-06 Thread Andy Wardley
cumentation (perldoc ttree, perldoc Template) for further info. The TT web site also has my paper from TPC4 which discusses these techniques at greater length. http://www.template-toolkit.org/ HTH A -- Andy Wardley [EMAIL PROTECTED] Signature regenerating. Please remain seated.

Problems with SERVER_MERGE and DIR_MERGE

2000-11-06 Thread Andy Wardley
ng called, but it's not immediately apparent as to where they're being called from. Cheers A -- Andy Wardley [EMAIL PROTECTED] Signature regenerating. Please remain seated. [EMAIL PROTECTED] For a good time: http://www.kfs.org/~abw/

Re: a web interface to visualize tables

2000-11-06 Thread Andy Wardley
) -%] [% results = DBI.query('SELECT * FROM alphabet ORDER BY letter') %] [% INCLUDE fancy_table %] [% INCLUDE plain_table %] [% INCLUDE boring_table %] See http://www.template-toolkit.org/ or http://www.cpan.org/modules/by-module/Template/ HTH A -- Andy Wardley [EMAIL PROTECTED

Re: HTML Template Comparison Sheet ETA

2000-09-06 Thread Andy Wardley
pe, I don't agree, FOREACH and TMPL_LOOP are semantically identical in these examples. A -- Andy Wardley [EMAIL PROTECTED] Signature regenerating. Please remain seated. [EMAIL PROTECTED] For a good time: http://www.kfs.org/~abw/

Re: template kit.....

2000-08-02 Thread Andy Wardley
te systems shoulds be concerned with processing templates and not implementing every piece of application functionality that anyone could ever wish for. A -- Andy Wardley [EMAIL PROTECTED] Signature regenerating. Please remain seated. [EMAIL PROTECTED] For a good time: http://www.kfs.org/~abw/

Re: Templating system

2000-07-30 Thread Andy Wardley
Embperl's parser have used from the startup only C code, maybe that's the reason why the time this takes (compared to the rest of the request) never was an issue for me... Yes, the great thing about Embperl and other embedded Perl solutions is that the "parsing" phase only really requires the

Re: Templating system

2000-07-29 Thread Andy Wardley
But you have to recompile the Perl code, which normaly takes more time, then compiling the template to the Perl code. I don't think that this will gain very much speed. (Maybe in case of TT this is more important, because it has to first translate his own language to Perl code, while other

The Template Toolkit (Re: Templating Systems)

2000-07-28 Thread Andy Wardley
nd beta 3, due out early next week, should be rock solid. Once the documentation has caught up with the code (almost there), I'll be releasing V2 gold and it'll find it's way onto CPAN. A -- Andy Wardley [EMAIL PROTECTED] Signature regenerating. Please remain seated. [EMAIL PROTECTED] For a good time: http://www.kfs.org/~abw/

Re: Templating system

2000-07-28 Thread Andy Wardley
of compiled templates. That way, the templates never need to be re-compiled (i.e. from TT syntax to Perl code) unless you change them. They can simply be loaded via Perl's require(). A -- Andy Wardley [EMAIL PROTECTED] Signature regenerating. Please remain seated. [EMAIL PROTECTED

Re: Template techniques

2000-06-09 Thread Andy Wardley
templates with Mason components and/or any other template form which gets compiled to Perl. A -- Andy Wardley [EMAIL PROTECTED] Signature regenerating. Please remain seated. [EMAIL PROTECTED] For a good time: http://www.kfs.org/~abw/

Re: DBI and HTML modules?

1999-12-20 Thread Andy Wardley
%] [% FOREACH mod = modlist %] [% IF modlist.first %] h2Modules/h2 ul [% END %] lia href="[% mod.url %]"[% mod.name %]/a [% IF modlist.last %] /ul [% END %] [% END %] [% INCLUDE footer %] A -- Andy Wardley [EMAIL PROTECTED] Signa

(Fwd) Template-Plugin-DBI 0.09 (DBI and HTML modules)

1999-12-20 Thread Andy Wardley
/Template-Plugin-DBI -0.09.tar.gz Regards SAM ---End of forwarded mail from [EMAIL PROTECTED] -- Andy Wardley [EMAIL PROTECTED] Signature regenerating. Please remain seated. [EMAIL PROTECTED] For a good time: http://www.kfs.org/~abw/

Re: Content management system

1999-12-01 Thread Andy Wardley
on the templates list about how best to combine the various efforts into one coherent application server suite. There's quite some way to go until we have a "finished product", but the ball is rolling and things are looking encouraging so far. A -- Andy Wardley [EMAIL PROTECTED] Signature re

Re: mod-perl logo

1999-11-17 Thread Andy Wardley
trued as an O'Reilly product, but they could surely afford to be more pragmatic. A -- Andy Wardley [EMAIL PROTECTED] Signature regenerating. Please remain seated. [EMAIL PROTECTED] For a good time: http://www.kfs.org/~abw/

Re: Ye Ol' Template System Thread

1999-11-17 Thread Andy Wardley
which is the "fastest" unless you can compare like-for-like. And it's not really fair on the caching processors to turn their caches off so that they run as slowly as all the others just to get a "fair comparison". A -- Andy Wardley [EMAIL PROTECTED] Signature regenerating.

Re: Trying not to re-invent the wheel

1999-11-17 Thread Andy Wardley
, or you can have a template which, on being processed by the toolkit, loads and calls and Perl code that it needs (via a plugin interface). It's a slippery slope that leads both up and down. :-)= A -- Andy Wardley [EMAIL PROTECTED] Signature regenerating. Please remain seated. [EMAIL