Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: What are your favorite tools for building a static site?

by Ovid (Cardinal)
on Dec 15, 2004 at 23:21 UTC ( [id://415217]=note: print w/replies, xml ) Need Help??


in reply to What are your favorite tools for building a static site?

Get the Template Toolkit book. Read the first couple of chapters and then skip ahead to the chapter on building static sites. I rebuilt my Web site in just a few hours using it. Now making global changes on the fly is a snap.

Template Toolkit is ridiculously easy to use, but it's very powerful if you need its advanced features.

Cheers,
Ovid

New address of my CGI Course.

  • Comment on Re: What are your favorite tools for building a static site?

Replies are listed 'Best First'.
Re^2: What are your favorite tools for building a static site?
by webfiend (Vicar) on Dec 16, 2004 at 19:22 UTC

    Thanks for pointing out Template::Toolkit. I had looked at it a while ago, but never got around to really examining it. Now that I've taken a closer look, it will probably do quite nicely for satisfying the little annoyances I'd been experiencing with the other toolkits. WRAPPER is cool, and I can tell that I am going to enjoy FILTER when I get to it.

    Once I figure out how to build my breadcrumb trails and sitemaps, I'll be a happy geek.

      MACRO and BLOCK are also quite useful. You can use them to build recursive template routines. Don't like the word routine here, but it kinda fits.

      builds a string containing the number of "A"'s specified. (dumb example, and it may not work, not tested, but you get the idea) I'm ignoring the argument for/against doing this in template code. The HTML::Template guys will put a hit out on me. :)

      [% MACRO gen_a_list(number_of_as) BLOCK %] [% a_string = "" %] [% IF number_of_as > 0 %] [% a_string = "A" _ gen_a_list(number_of_as - 1) %] [% END %] [% a_string %] [% END %]
      I really enjoy working with TT. I haven't checked out the book yet. Is it decent?

      The book has examples of building breadcrumbs and sitemaps on the fly. You'll like it.

      Cheers,
      Ovid

      New address of my CGI Course.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-25 07:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found