Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Build-Markup ??

From: raimunddold:web at: 11-Aug-2003 8:39

Am Sonntag, 10. August 2003 23:24 schrieben Sie:
> Raimund wrote: > > Why does build-markup not replace the tag in the following file? > > Try this: > > Rebol [] > Team: "Rebol is the best!" > Example: {<p><i class="d"><%Team%></i></p><i class="b"><pre>} > print build-markup Example > halt >
Yes this works. I already used build-markup several times, it always did work for me. But I think this time it was the first time to use an argument to a function as tag variable. Again the script with the function: REBOL [] Build-Header: func [ Team [string!] ] [ Header-Proto: [ {<p><i class="d"><%Team%></i></p><i class="b"><pre>} ] print [ "That is the team " Team] build-markup to-string Header-Proto ] print Build-Header "Test" halt And the output of the script is the following: That is the team Test <p><i class="d">***ERROR no-value in: Team</i></p><i class="b"><pre> Does build-markup use only the global context? Raimund