Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

•Re: TT2 -- A Matter of Style

by merlyn (Sage)
on Jun 13, 2002 at 18:12 UTC ( #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
Node Status?
node history
Node Type: note [id://174290]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2019-05-23 13:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (144 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!