I'm resending this because I got the address wrong the first time.
----- Forwarded message from -----
Date: Thu, 7 Jun 2001 11:02:34 -0700
To: webware-devel
Subject: Re: [Webware-devel] Re: more on TS #parse
On Thu, Jun 07, 2001 at 10:47:48AM -0700, Tavis Rudd wrote:
> #include $var
> or
> #include "file.txt"
This is good, that's what "include" means in C and PHP. Include it
as if it were part of the original template.
> #include verbatim $var
> or
> #include verbatim "file.txt"
This is a good compromise.
The only thing is, it's a bit magical that a string literal means
a filename. It would be nice if the syntax made that explicit.
How about #include for the file and #eval for the placeholder?
That parallels many other languages.
For those who don't like the 'verbatim' attribute, we could instead have
a 'parse' attribute with the opposite meaning. But I think most of the
time people would want their includes parsed, no? The most common
operation is the one that should be the default.
Alternatives are:
#include verbatim
#include verbatim=1
#includeVerbatim
#include_verbatim
"Verbatim" means you get exactly what was input without any changes,
word for word, character for character.
----- End forwarded message -----
I like the new proposal, "raw" instead of "verbatim". It connotes
the right thing, is widely used in more or less this sense in computer
circles, and it's a word everybody knows.
--
-Mike (Iron) Orr, [EMAIL PROTECTED] (if mail problems: [EMAIL PROTECTED])
http://iron.cx/ English * Esperanto * Russkiy * Deutsch * Espan~ol
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-devel