|XP is just a number|
Turning HtmlDoc into Bookby holli (Monsignor)
|on Jul 08, 2005 at 14:53 UTC||Need Help??|
Today I decided to learn more about the Template-Toolkit. I am the kind of person that can learn the first steps better when I read things on paper. Reading from screen is fine for me for looking up a reference, but reading long texts is a pain. Regardless if it is a CRT or a TFT display.
The docs of Template Toolkit are, as of many Perl modules, splitted in many small chunks, which is also fine for reference, but a pain to print out.
So I decided to put the stuff together in a Word (/me ducks) file and make a pdf out of it, so i can share it with people. I planned to make it in three parts.
So far so good. But when I came to the reference I realized that there are far too many files to do it conviniently by hand. Solution: script it.
Here is the script I used for the issue. It uses regexes to deal with the html, but since Active States HTML-Docs are computer generated I think that is ok in this case :-D
As you may have noticed, the html relies on a external stylesheet, so you can even tweak the formatting to you your liking.
I will put the six Files (TT-Manual-Single, TT-Manual-Double, TT-Tutorial-Single, TT-Tutorial-Double, TT-Reference-Single and TT-Reference-Double) on my webspace at holli.perlmonk.org as soon as I get home, since I cannot ssh from work.
The difference between "Double" and "Single" here is that one is optimized for double paged print, the other for single page print.
The files are now available at http://holli.perlmonk.org/TTdocs. There is a 20MB transfer limit per day on jcwren's server, so please be kind if it does not work for you. Just try the other day.
holli, /regexed monk/