I installed the (v0.01) version of the Template-Skeleton
files yesterday, to play around with customizing a web site from a
prefab set of files.

I don't profess to know much about what I'm doing yet 8-}, but I
have read the advance TT-book-chapter available at the O'Reilly
site, and the notes from Andy's talk at the latest TPC.

The notes mention "Map Making", and show a sample
templates/lib/config/map file which describes the navigational
structure of the sample web site. This suggests to me that by
changing the nested hash-style data structure in that file, I can
define a new site structure. So I modified it, but I find that my
changes don't get reflected in any web pages! I *did* provide the
underlying new "src/menu/page.html" files to describe the new
pages, and those do get built and copied into the appropriate
places in the html/* hierarchy, but the navigational info in them
is from the *original* map file, not my reworked one. So I can
get to my new pages via the appropriate URLs, but not via the
navigational links, as desired.

Although the book chapter mentions that "build" is the Template
Toolkit's "make", I had to learn the hard way, through several
wasted hours of head-scratching and hypothesis testing, that it
doesn't know squat about dependencies! (which is the essence of
make, IMHO). But I'm over that hurdle now, and accustomed to
forcing rebuilds of the whole site whenever I change anything in
the templates/lib hierarchy. So my map file is being ignored for
some other reason.

Can somebody please tell me how to make this map-thingy work?

Thanks,

-Tim

P.S. By the way, the chapter on the O'Reilly site has many typos
     -- mostly omitted articles, and of course the obvious
     inclusions of HTML entities in their literal forms such as
     "<" all over the place; if anybody wants my errata list,
     I'll be glad to provide it).

*------------------------------------------------------------*
| Tim Maher (206) 781-UNIX  (866) DOC-PERL  (866) DOC-UNIX   |
| tim(AT)Consultix-Inc.Com  TeachMeUnix.Com  TeachMePerl.Com |
*+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-*
| CLASSES: Min. Perl: 12/1; Perl: 12/2-4; Perl Modules: 12/5 |
|   Watch for my Book: "Minimal Perl for Shell Programmers"  |
*------------------------------------------------------------*

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to