logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: extended TMPL_IF / UNLESS syntax: msg#00071

lang.perl.modules.html-template

Subject: Re: extended TMPL_IF / UNLESS syntax

Philip S Tellis wrote:
Sometime on Feb 19, Puneet Kishor assembled some asciibets to say:


never be possible (alternating colored rows in a table), and some


<td class="<tmpl_if __ODD__>odd</tmpl_if>row"> blah </td>


I do something similar but I just pass one of 2 classes through with the hash to H::T. So each row has a class like this,
<tr class="<tmpl_var name="CLASS">"><td></td></tr>


That way each row has a class defined either way be it odd or even and I can customize it all in CSS later. In NS4 and crummier browsers you'd probably have to pass it to each <TD>

Of course this makes me have to figure odd and even rows out in the perl side but it also opens up to having more then 2 alternating row definitions if needed.

Having moved to Coldfusion shop I really miss all the separation that H::T forced you into. It makes Templates so much easier to work with.

--Pat

--
"You cannot kick like me,
Can't be the Kicker I am" -- Thulsa Doom
-----------------------------------------
pat at hakjoon dot com


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
krysalis.sandbo...    web.zope.zwiki/...    gnome.apps.gnum...    xfree86.newbie/...    editors.vim/200...    mozilla.enigmai...    boot-loaders.gr...    network.vnc.ult...    redhat.release....    java.geronimo.u...    os.netbsd.devel...    horde.wicked/20...    linux.lsb.discu...    ietf.ips/2005-0...    alsa.devel/2002...    user-groups.lin...    package-managem...    debian.devel.da...    security.cyrus....    video.gstreamer...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation