Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Dividing HTML up into chunks

by andreychek (Parson)
on Jun 28, 2001 at 07:34 UTC ( #92170=note: print w/ replies, xml ) Need Help??


in reply to Dividing HTML up into chunks

One possible way to handle this would be to use HTML::Template. It offers you the ability to use include statements within your HTML code. So, using your example, you could do something like:

main.html --------- <html> <body> <TMPL_INCLUDE="audio.html> ... <TMPL_INCLUDE="video.html> ... </body> </html>
And then of course, audio.html and video.html would contain all the HTML code for those particular sections.

There are other templating systems though. Here is a node that describes various templating systems. Template Toolkit may end up being more powerful in the end, but I find it easier to keep presentation/code seperated using HTML::Template. So check em both out and decide :-)
-Eric


Comment on Re: Dividing HTML up into chunks
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2015-07-05 10:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (61 votes), past polls