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


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> P-O Yliniemi
> Sent: Tuesday, May 01, 2001 4:48 AM
> To: [EMAIL PROTECTED]
> Subject: [REBOL] HTML-Template.r ?
> 
> 
> 
> Anyone working on a HTML::Template (Perl module) clone for REBOL ?
> 
> Would be nice to be able to separate HTML code from script code 
> sometimes (and
> then letting the REBOL CGI's concentrate on data processing)
> 
> Info/Tutorial:
> http://www.perlmonth.com/features/template/template.html?issue=11
> 
> Source:
> http://sourceforge.net/projects/html-template/
> 
> /PeO
> 
> -- 
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the 
> subject, without the quotes.
> 
> 
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to