|
Posted by Hayden Stainsby on August 30, 2007, 12:40 pm
Please log in for more thread options
merlyn@stonehenge.com(Randal L. Schwartz) wrote:
> And that makes it not HTML. If you're already crossing the line,
> crossit completely. Don't pretend you're not crossing it. :)
There's still a big difference between what I have below, which will
display correctly most browsers and can be passed around as an example
of what a page will look like, and what's required when you have code
(even if it isn't perl code) inside the HTML.
I can give the former to anyone who knows HTML - or anyone who can
operate Dreamweaver - and they can edit it happily without knowing
what these extra attributes mean. The second however can only be
editted by someone who knows the syntax for HTML::Template - or
another templating module which works in a similar fashion.
> Hayden> So an HTML template snippet like this:
> Hayden> <ul>
> Hayden> <li jwcid="list_item">Jackets</li>
> Hayden> <li jwcid="list_item">Shirts</li>
> Hayden> <li jwcid="list_item">Ties</li>
> Hayden> </ul>
> And that's not HTML. You might as well write:
> [% list = ['Jackets' 'Shirts' 'Ties'] %]
> [% FOR item IN list %]
> [% "<ul>" IF loop.first %]
> <li> [% item %] </li>
> [% "</ul>" IF loop.last %]
> [% END # foreach %]
But thanks for pointing out my stepping over lines and such. (-:
--
I'm trying a new usenet client for Mac, Nemo OS X.
You can download it at http://www.malcom-mac.com/nemo
|