You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_dtcl@tcl.apache.org by "David N. Welton" <da...@apache.org> on 2001/02/26 15:46:45 UTC
Re: Tcl tags, still off line
Wojciech Kocjan <zo...@nowiny.net> writes:
> > Yes, if it's a good thing, I'm willing to break backwards
> > compatiblity. Keep in mind that some people have been using
> > mod_dtcl for a while though. Posting a simple script that seeks
> > and changes .ttml files from <+ +> to <?dtcl ?> would probably be
> > appreciated if we do make this change.
> Why not using both <+ and <?dtcl ? This will be backwards compatible
> ...
Because it will make the parser even uglier, and a bit slower. I'm
going to play around with this some and see exactly how much.
I suspect I'll try and do it with ifdef's, so that people can turn it
off if/when they have transferred to the new system.
One idea I have is to use <? ?> and have the parser ignore the text up
to the first white space after the first <?, so that you can put
<?dtcl if it makes you feel better about identifying the script. I
hate typing a lot of stuff in when I just want to print out a variable
though... How do people feel about this? The problem would be when
someone put <?hputs "foo"?> and their script didn't run...
> Then use <?dtcl ... and <SCRIPT LANGUAGE="dtcl"> - it may seem a bit weird
> as the language actually is tcl, but the 'dialect' is dtcl...
<script language....> is really ugly:-) And a pain in the ass to parse
if you don't match it exactly.
--
David N. Welton
Personal: http://www.efn.org/~davidw/
Free Software: http://people.debian.org/~davidw/
Apache Tcl: http://tcl.apache.org