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

[REBOL] Re: HTML-Template.r ?

From: carl:rebol at: 2-May-2001 1:02

I've looked at it. Such a template system could be built in about a page or two of REBOL code. Would be very handy if anyone out there wants to code it... Here's a quick starter... template: load/markup template-file parse template [ some [to tag! set tag tag! (if find/match tag "tmpl" [do-tag tag]) ] ] or, as code: while [template: find template tag!] [ tag: first template template: next template if find/match tag "tmpl" [ tag: parse tag "=" switch first tag [ "tmpl_var" [...] "tmpl_loop' [...] ... ] ] ] Go for it. :) -Carl