Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
It is a static web site updated up to 4 times a day. Rebuilding all the site maps every time is easier, in my opinion than trying to update them.

Don't quite understand the above sentence. What is the difference between "rebuilding al the site maps every time" and "trying to update them."?

That aside, H::T can do the job for you happily whether you want to dynamically build your site on every hit, or you want to build static versions periodically. Just write to a file in the case of the latter. I do that with a website I've built that doesn't get updated that often.

One generic template page with TMPL_LOOP within TMPL_LOOP will work happily for you. After that you can muck around with the physical looks of the page as you please.

I like H::T for its sheer simplicity, and very little provision for logic on the display side. That helps enforce a clear MVC separation. With a little bit of care, you can eliminate all display-side logic.

And, it is very fast.

I have looked at HTML::Template and believe that although it could be used I'm afraid it would be very difficult to maintain.
Any particular reason behind that thinking you want to share?

In reply to Re: Building html site maps by punkish
in thread Building html site maps by wfsp

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-04-24 19:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found