[REBOL] Re: HTML Dialect?
From: al::bri::xtra::co::nz at: 12-Jan-2003 8:41
Ed wrote:
> But how do I, for example, do this?:
> >> Fred: Make Object! [ File: %Fred.html Text: "Meet Fred Flintstone" ]
> >> ML Compose/Deep [ a/href Fred/File Fred/Text ]
Just put the variables inside parenthesis, like:
>> Fred: Make Object! [ File: %Fred.html Text: "Meet Fred Flintstone" ]
>> ML Compose/Deep [ a/href (Fred/File) (Fred/Text)]
== {<a href="Fred.html">Meet Fred Flintstone</a>}
> BTW, playing with it further, gave me these results:
> >> FredFile: %Fred.html
> == %Fred.html
> >> FredText: "Meet Fred Flintstone"
> == "Meet Fred Flintstone"
> >> ML Compose/Deep [ a/href FredFile FredText ]
> == {<a href="FredFile" />
>> FredFile: %Fred.html
== %Fred.html
>> FredText: "Meet Fred Flintstone"
== "Meet Fred Flintstone"
>> ML Compose/Deep [ a/href (FredFile) (FredText)]
== {<a href="Fred.html">Meet Fred Flintstone</a>}
There's some demo stuff here:
http://www.frozen-north-linuxonline.com/source_code/REBOL/MLDemo.txt
which can be more helpful.
Andrew Martin
ICQ: 26227169 http://valley.150m.com/