Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by ryantate (Friar)
on Dec 16, 2004 at 18:12 UTC ( [id://415421]=note: print w/replies, xml ) Need Help??


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

The documentation on ttree is incredibly sparse. (For example, there are no examples of actually doing something useful with ttree, only how to set options and configure the app.)

I never understood where it gets the actual content that will be fed into the templates. If you had a collection of text files for your content, how would you feed them to ttree? The docs just say ttree will "process ... template files," as though that is somehow useful in and of itself (??). Template files without corresponding content files don't seem very interesting to me.

I just never bothered messing with ttree. Easier to write my own perl scripts and use Template; than to figure out what this script (which I'm sure is useful to those in the know) is supposed to be doing.

Update: To avoid sounding too much like an ungrateful twit, I should note the Template Toolkit generally ROCKS, and I appreciate the time Andy put into it.

Replies are listed 'Best First'.
Re^3: What are your favorite tools for building a static site?
by perrin (Chancellor) on Dec 16, 2004 at 19:50 UTC
    If you are happy writing your own script and calling TT, there's no need to change.

    The way to add content with ttree is usually to use plugins of some kind for grabbing it from a database or text files or whatever. I would never do that though. I only use it for things where the content is in the files I'm processing, and I just want to add common nav stuff to them via includes.

      Ahh, I see ... sort of like SSI with FOREACH and so forth ;-> (Plus it only gets run once as opposed to on each req ...)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-03-29 05:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found