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
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 %]
[%
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
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
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
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
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
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
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
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
On Tue, Oct 23, 2001 at 12:02:00PM -0500, Dave Rolsky wrote:
Perl Jewels (Joules?)
Perl Oysters :-)
A
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/
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
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.
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/
) -%]
[% 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
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/
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/
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
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
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/
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
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/
%]
[% 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
/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/
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
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/
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.
, 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
29 matches
Mail list logo