Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

•Re: TT2 -- A Matter of Style

by merlyn (Sage)
on Jun 13, 2002 at 18:12 UTC ( [id://174290]=note: print w/replies, xml ) Need Help??


in reply to TT2 -- A Matter of Style

I'd abstract it even further.
[% BLOCK name_with_image -%] <table border="0"> <tr> <td> <h1>[% name %]</h1> </td> <td> <img src="[% image %]" /> </td> </tr> </table> [%- END -%] ... [% INCLUDE name_with_image name = "My name" image = "mypage.png" -%]
That way the business part of what you're representing doesn't get mixed up with the presentation part. And you can easily redesign your site. Use the power of the Templates! The Templates will be with you, always!

-- Randal L. Schwartz, Perl hacker

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://174290]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-19 11:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found