[Zope] Passing a string to a dtml method

Andreas Jung andreas@andreas-jung.com
Sat, 1 Dec 2001 13:29:06 -0500


----- Original Message ----- 
From: "Bruce Eckel" <Bruce@EckelObjects.com>
To: <chrism@digicool.com>
Cc: <zope@zope.org>; <ecofsky@theUNIXman.com>
Sent: Saturday, December 01, 2001 13:33
Subject: [Zope] Passing a string to a dtml method


> I do have a question about the anti-spam solution, though. If I
> create a dtml-method, call it "email", like this:
> 
> <FORM METHOD="POST" ACTION="/Util/send">
> <INPUT TYPE="HIDDEN" NAME="name" VALUE="bruce">
> <INPUT TYPE="HIDDEN" NAME="domain" VALUE="EckelObjects.com">
> <INPUT TYPE="HIDDEN" NAME="subject" VALUE="Here is the subject
> line">
> <INPUT TYPE="SUBMIT" VALUE="Send Email to Bruce">
> </FORM>
> 
> is there a way to pass the 'subject' string in during a call to the
> dtml method, so that I could do something like this inside a dtml
> document or method:
> 
> <dtml-var email, subject="Here is the subject line">
> 
> (obviously I can't use that syntax)

What about  <dtml-var "email(subject='blabla...')"> ?

Andreas