Thanks to a suggestion from Hans I've made a slight enhancement to
BoltWire that opens up some amazing prophecies. It will have to wait
for the next release but you can get the idea from the snippet below:

[form]
[text a]
[session b '/=[if equal {=a} hi]HELLO[else]GOODBYE[if]=/']
[session savedata a,b]
[submit]
[form]

I just added a bit of code that says if a field value (b) is escaped,
you save the unescaped value with a little flag to indicate so. Then
when the form submits, if BoltWire hits the flag it processes the
markup at that time. In this example, if you enter hi in the text box
b is set to HELLO, else GOODBYE. And that value is saved. Currently
only vars, functions, and if's are processed.

Of course it is currently possible to do this:

[form]
[text a]
[session if 'equal {=a} hi ? b=HELLO ? b=GOODBYE']
[session savedata a,b]
[submit]
[form]

Any comments?  It works quite nicely...  I'm not sure about all the
implications, or if we can think of uses we cannot currently do.  In
some ways it appeals to me as extremely flexible...

Cheers,
Dan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to