Wojciech Kocjan <[EMAIL PROTECTED]> writes:
> On 12 Dec 2000, David N. Welton wrote:
> Ok. It's a huge mess at the moment. First of all to launch it first write:
Hrmm, wow, lots of code. Maybe the newsgroup would be better?:-) I'm
in the middle of trying to figure out libapreq, so that I can use it
with mod_dtcl... even more shared code! good! This means that I don't
have to maintain my own file upload stuff, and that I can share code
with other projects like mod_perl and PHP.
> here's how it should be used:
> ::eval::init
> puts [subst [::eval::format {
> this is a sample text.
> <+ reverse {this text will be reversed} +>
> }]]
> ::eval::finish
Looks ok.
> It may sound a bit weird, but it's not (I hope :). First of all the
> cmd_* procs should be rewritten as they do not use xformat2 - <+
> reverse {[exec reboot]} +> could reboot your machine if apache was
> run as root.
People who run apache as root deserve what they get;-)
> ps. Yes, this code is a HUGE mess - it's about 0.0.1 beta :). But some
> parts do really work :>
Excellent, keep me posted, and when it's more 'packaged', I'll be
happy to include it under contrib/.
> ps2. If anyone has an idea how to make it possible to do <+ link
> article 134 +>? [main problem I came up with is that it should be
> possible to generate different links for different sites. also, the
> reformatting procs are kind of slow so I store results of
> ::eval::format in SQL as well - which works quite fast ... (it's
> past midnight now and I'm veeery sleepy - this mail may not make too
> much sense :)
Hrmm... it really depends, I suppose on how flexible you need to be.
Something like slashdot's links:
http://slashdot.org/article.pl?sid=00/12/13/1337212
Is pretty easy...
proc link { id } {
return "http://slashdot.org/article.pl?$id"
}
Or something similar... but I'm assuming that's a little too easy and
that you want something more complicated:-)
--
David N. Welton
Personal: http://www.efn.org/~davidw/
Free Software: http://people.debian.org/~davidw/
Apache Tcl: http://tcl.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]