[Prev][Next][Index][Thread]
Re: [OFF] HTML template languages
In article <38DAA3B5.16222199@miqs.com>, Scott Ribe <sribe@miqs.com> wrote:
> IOW, what I think truly stinks is:
>
> <TABLE BORDER=1 CELLSPACING=0 CELLPADDING=3>
> <TR><TH COLSPAN=4 ALIGN=CENTER>
> Pagers: <StupidScript printf ("%d", pager-list.count);> found
> </TH></TR>
> <TR>
> <TH>Name</TH><TH>Dept</TH><TH>Phone</TH><TH>Pager</TH>
> </TR>
> <StupidScript
> (ForEach pg in pager-list)
> {
> printf ("<TR VALIGN=TOP>")
> printf ("<TD>%s</TD><TD>%s</TD><TD>%s</TD>",
> pg.Name, pg.Dept, pg.Phone);
> printf ("<TD>");
> if (pg.canPage)
> printf ("<A HREF="editmsg.4ds?[PagerNum]=>");
> printf (pg.Num);
> if (pg.canPage)
> printf ("</A>");
> printf ("</TD>");
> printf ("</TR>");
> }
> >
> </TABLE>
Does this stink less if everything before the "<StupidScript" tag is
actually a "print" with a "here document", or other multi-line string
constant?
Which is a pretty common approach in Perl.
-- Bruce
Follow-Ups:
References: