stas 02/01/05 11:29:56 Added: bin build docset_build conf html2ps-global.conf html2ps-slides.conf html2ps.conf hyphen.tex tmpl/custom/html ad head headers index index_body index_toc link menu_top_level navbar_global navbar_local navbar_local_alt page page_body tail title toc tocsection tmpl/custom/ps body head index page tail tmpl/std/html cell pod2html rgb row table tmpl/std/misc author contribs copy copymid copyright exceptions filters history install modules plugins projects reserved resources seealso version warning tmpl/std/pod footer header index page tmpl/std/pod/html a_name begin for head1 head2 item over pod quote_seq_text seq_bold seq_code seq_entity seq_file seq_italic seq_link seq_space seq_text text textblock verbatim tmpl/std/splash bar box breakdown button config domm_buttom domm_button domm_menu domm_pulldown dots dropbox frame hair homelink icon menu menubar panel pulldown tab tabbox tabsbox tabset text ttdotorg ttpower Log: - build scripts and templates Revision Changes Path 1.1 modperl-docs/bin/build Index: build =================================================================== #!/usr/bin/perl -w # this file is used to simplify the use of pod2hpp so you don't have to # specify the path to the config file on every execution # you call this script just like pod2hpp but without the configuration # file at the end. use FindBin qw($Bin); # currently we call use lib qw($Bin/../lib); # forward the @ARGV my $command = "docset_build @ARGV $Bin/.. src/config.cfg"; #print $command; system $command; 1.1 modperl-docs/bin/docset_build Index: docset_build =================================================================== #!/usr/bin/perl -w ############################################### # # ## for documentation ## ### execute: ### #### % perldoc docset_build #### ### to get the built-in ### ## docs rendered ## # # ############################################### use strict; use DocSet::5005compat; use warnings; require Cwd; local $| = 1; use File::Spec::Functions; my $config_file = pop @ARGV; my $abs_root = pop @ARGV; # must start from the abs root chdir $abs_root; # make the config_file path as a true full path with no .. in it my $cwd = Cwd::cwd(); $abs_root = $cwd; $config_file = catfile $cwd, $config_file; die "cannot find the config file ", usage() unless -e $config_file and -r _; use Getopt::Std; use DocSet::RunTime (); use DocSet::DocSet::HTML (); use DocSet::DocSet::PSPDF (); ###################################### ### Init Command Line Arguments ###################################### # set defaults if no options given my $verbose = 0; # verbose? my $podify_items = 0; # podify pseudo-pod (s/^* /=item */) my $split_html = 0; # create the splitted html version my $make_tgz = 0; # create the rel and bin+src archives? my $generate_ps = 0; # generate PS file my $generate_pdf = 0; # generate PDF file my $rebuild_all = 0; # ignore the timestamp of ../src/.last_modified my $print_anchors = 0; # print the available anchors my $validate_links = 0; # validate %links_to_check against %valid_anchors my $makefile_mode = 0; # executed from Makefile (forces rebuild, no # PS/PDF file, no tgz archive created!) my $slides_mode = 0; ###################################### ### Process Command Line Arguments ###################################### my %opts; getopts('hvtpdfalmise', \%opts); usage() if $opts{h}; if (keys %opts) { # options given $verbose = $opts{v} || 0; $podify_items = $opts{i} || 0; $split_html = $opts{s} || 0; $make_tgz = $opts{t} || 0; $generate_ps = $opts{p} || 0; $generate_pdf = $opts{d} || 0; $rebuild_all = $opts{f} || 0; # force $print_anchors = $opts{a} || 0; $validate_links = $opts{l} || 0; $slides_mode = $opts{e} || 0; $makefile_mode = $opts{m} || 0; } if ($makefile_mode) { $verbose = 1; $make_tgz = 0; $generate_ps = 0; $generate_pdf = 0; $rebuild_all = 1; $print_anchors = 0; $validate_links = 0; } # in the slides mode we turn preprocessing automatically to be on if ($slides_mode) { $podify_items = 1; } # we need a PS version in order to create a pdf $generate_ps = 1 if $generate_pdf; # verify the ability to create PS version $generate_ps = DocSet::RunTime::can_create_ps if $generate_ps; # verify the ability to create PDF version $generate_pdf = DocSet::RunTime::can_create_pdf if $generate_pdf; # we cannot create PDF if we cannot generate PS $generate_pdf = 0 unless $generate_ps; ## if there is no toc_file we cannot produce correct internal links, ## therefore we force this option. #my $toc_file = $config->get_param('toc_file'); #$rebuild_all = 1, # print "!!! No $toc_file was found, forcing a complete rebuild\n" # unless -e $toc_file or $rebuild_all; my %options = ( verbose => $verbose, podify_items => $podify_items, split_html => $split_html, make_tgz => $make_tgz, generate_ps => $generate_ps, generate_pdf => $generate_pdf, rebuild_all => $rebuild_all, print_anchors => $print_anchors, validate_links => $validate_links, makefile_mode => $makefile_mode, slides_mode => $slides_mode, ); # make the runtime options available to other packages DocSet::RunTime::set_opt(\%options); # absolutize the base url ###################################### ### Create the HTML DocSet ###################################### # scan for available configs (books/chapters) my $docset = DocSet::DocSet::HTML->new($config_file); # must be a relative path to be able to move the generated code from # location to location, without adjusting the links $docset->set_dir(abs_root => "."); $docset->scan; $docset->render; ###################################### ### Create the PS/PDF DocSet ###################################### if (DocSet::RunTime::get_opts('generate_ps')) { my $docset = DocSet::DocSet::PSPDF->new($config_file); $docset->set_dir(abs_root => "."); $docset->scan; $docset->render; } # go back to where you have from #chdir $orig_dir; ###################################### ### Subs ###################################### ########## sub usage{ print <<USAGE; pod2hpp [options] config_file_location Options: -h this help -v verbose -i podify pseudo-pod items (s/^* /=item */) -p generate PS file -d generate PDF file -f force a complete rebuild -m executed from Makefile (forces rebuild, no PS/PDF file, no tgz archive!) USAGE # not implemented/ported yet # -t create tar.gz # -s create the splitted html version # -a print available hypertext anchors # -l do hypertext links validation # -e slides mode (for presentations) exit; } # end of sub usage __END__ =head1 NAME docset_build - a script that does documentation projects building in HTML, PS and PDF formats =head1 SYNOPSIS pod2hpp [options] configuration_file_location =head1 DESCRIPTION See C<DocSet> =head1 AUTHOR Stas Bekman <[EMAIL PROTECTED]> =head1 COPYRIGHT This program is distributed under the Artistic License, like the Perl itself. =cut =cut 1.1 modperl-docs/conf/html2ps-global.conf Index: html2ps-global.conf =================================================================== /* Global configuration file for html2ps */ @html2ps { package { PerlMagick: 0; netpbm: 1; ImageMagick: 1; djpeg: 1; TeX: 1; dvips: 1; Ghostscript: 1; libwww-perl: 1; path: "/usr/X11R6/bin:/usr/bin"; } paper { type: letter; } hyphenation { en { file: "./hyphen.tex"; } } option { /* number: 0; - it already numbers the pages! */ colour: 1; duplex: 1; /* Generate postscript code for double sided printing. */ toc: hb; /* Generate a table of contents, based on headings make it appear first */ frame: 1; hyphenate: 1; /* Hyphenate the text */ } header { /* Running page header */ odd-left: $T; /* Document title */ odd-right: $H; /* Current main heading */ even-left: $H; /* Ditto */ even-right: $A; /* Document author (from <META NAME="Author"...>) */ } toc { heading: $T; } footer { /* Running page footer */ center: "- $N -"; /* Page number */ } showurl: 1; /* Show URL:s for external links */ seq-number: 1; /* Automatic numbering of headings */ } /* Standard style sheet definitions */ P { text-align: justify } H1, H2, H3, H4, H5, H6 { font-family: Times; font-weight: bold } H1 { font-size: 18pt; text-align: center } H3, H5 { font-style: oblique } H2, H3 { font-size: 16pt } H4, H5 { font-size: 13pt } H6 { font-size: 11pt } ADDRESS { text-align: right } PRE { background-color: #ccccff; padding: .25em; margin: .25em; border: thin dashed black; } 1.1 modperl-docs/conf/html2ps-slides.conf Index: html2ps-slides.conf =================================================================== /* Global configuration file for html2ps */ /* This version is suitable for generating the slides. The slides are generated with landscape orientation. Most likely that you want to use the: pod2hpp -idf the -i will convert * into items, so you don't need to work hard to create bullets, just start the line with * and you are all set, pod2hpp will podify it for you. */ @html2ps { package { PerlMagick: 0; netpbm: 1; ImageMagick: 1; djpeg: 1; TeX: 1; dvips: 1; Ghostscript: 1; libwww-perl: 1; path: "/usr/X11R6/bin:/usr/bin"; } paper { type: letter; } hyphenation { en { file: "./hyphen.tex"; } } option { /* number: 0; - it already numbers the pages! */ colour: 1; duplex: 0; /* 1 generate postscript code for double sided printing. */ toc: 0; /* toc: hb; Generate a table of contents, based on headings make it appear first */ /* toc: h; Generate a table of contents, based on headings make it appear last */ frame: 1; hyphenate: 0; /* Do not Hyphenate the text */ landscape: 1; /* We want it landscape - it doesn't work here, use -L at command line or --landscape */ } frame { /* The appearance of the optional frame controls */ width: 0.6pt; margin: 0.5cm; color: black; } margin{ left: 1.5; right: 1.5; top: 1.5; bottom: 2.0; } header { /* Running page header */ color: white; /* we don't want the header in slides */ } footer { /* Running page footer */ center: "Slide $N"; /* Page number */ left: $T; /* Document title */ right: $A; /* Author */ font-family: Courier; font-size: 16pt /* font-weight: bold; */ color: black; alternate: 0; } doc-sep: "<HR class=PAGE-BREAK>"; /* Separation between more than one document */ page-break: 1; /* Generating page breaks */ datefmt: "%e %b %Y"; ball-radius: 0.15em; /* The radius, given as a relative size, of the balls used in unordered lists. */ showurl: 0; /* Show URL:s for external links */ seq-number: 1; /* Automatic numbering of headings */ xref: 1; } BODY { font-family: Helvetica; font-size: 24pt; } /* Sans Serif font? */ /* Standard style sheet definitions */ P { text-align: justify; } H1, H2, H3, H4, H5, H6 { font-family: Helvetica; font-weight: bold; text-align: left; } H1 { font-size: 48pt; /* text-align: center; */ } H3, H5 { font-style: oblique; } H2 { font-size: 44pt; } H3 { font-size: 40pt; } H4, H5 { font-size: 32pt; } H6 { font-size: 28pt; } ADDRESS { text-align: right; } PRE { font-size: 24pt; font-family: Courier; font-weight: bold; } CODE { font-size: 30pt; font-family: Courier; font-weight: bold; } OL, UL, DD { margin-left: 2em; color: white; } 1.1 modperl-docs/conf/html2ps.conf Index: html2ps.conf =================================================================== /* Global configuration file for html2ps */ @html2ps { package { PerlMagick: 0; netpbm: 1; ImageMagick: 1; djpeg: 1; TeX: 1; dvips: 1; Ghostscript: 1; libwww-perl: 1; path: "/usr/X11R6/bin:/usr/bin"; } paper { type: letter; } hyphenation { en { file: "/usr/share/texmf/tex/generic/hyphen/hyphen.tex"; } } option { /* number: 0; - it already numbers the pages! */ colour: 1; duplex: 1; /* Generate postscript code for double sided printing. */ /* toc: hb; Generate a table of contents, based on headings make it appear first */ toc: h; /* Generate a table of contents, based on headings make it appear last */ /* frame: 1; */ frame: 0; hyphenate: 1; /* Hyphenate the text */ } frame { /* The appearance of the optional frame controls */ width: 0.6pt; margin: 0.5cm; color: black; } toc { heading: "<H2>Table of Contents:</H2>"; } header { /* Running page header */ odd-left: $T; /* Document title */ odd-right: $H; /* Current main heading */ even-left: $H; /* Ditto */ even-right: $A; /* Document author (from <META NAME="Author"...>) */ font-family: Times; } footer { /* Running page footer */ /* center: "- $N -"; */ odd-right: $N ; even-left: $N ; /* Page number */ even-right: $D; odd-left: $D; font-family: Times; } xref { text: "[p $N]"; passes: 10; } doc-sep: "<HR class=PAGE-BREAK>"; /* Separation between more than one document */ page-break: 1; /* Generating page breaks */ datefmt: "%e %b %Y"; showurl: 0; /* Show URL:s for external links */ seq-number: 1; /* Automatic numbering of headings */ xref: 1; } /* Standard style sheet definitions */ // BODY { // doesn't work :( // background: white; //} P { text-align: justify } H1, H2, H3, H4, H5, H6 { font-family: Times; font-weight: bold text-align: left } H1 { font-size: 20pt; /* text-align: center */ } H3, H5 { font-style: oblique } H2 { font-size: 18pt } H3 { font-size: 16pt } H4, H5 { font-size: 13pt } H6 { font-size: 11pt } ADDRESS { text-align: right } PRE { background-color: #ccccff; padding: .25em; margin: .25em; border: thin dashed black; } 1.1 modperl-docs/conf/hyphen.tex Index: hyphen.tex =================================================================== % The Plain TeX hyphenation tables [NOT TO BE CHANGED IN ANY WAY!] \patterns{ % just type <return> if you're not using INITEX .ach4 .ad4der .af1t .al3t .am5at .an5c .ang4 .ani5m .ant4 .an3te .anti5s .ar5s .ar4tie .ar4ty .as3c .as1p .as1s .aster5 .atom5 .au1d .av4i .awn4 .ba4g .ba5na .bas4e .ber4 .be5ra .be3sm .be5sto .bri2 .but4ti .cam4pe .can5c .capa5b .car5ol .ca4t .ce4la .ch4 .chill5i .ci2 .cit5r .co3e .co4r .cor5ner .de4moi .de3o .de3ra .de3ri .des4c .dictio5 .do4t .du4c .dumb5 .earth5 .eas3i .eb4 .eer4 .eg2 .el5d .el3em .enam3 .en3g .en3s .eq5ui5t .er4ri .es3 .eu3 .eye5 .fes3 .for5mer .ga2 .ge2 .gen3t4 .ge5og .gi5a .gi4b .go4r .hand5i .han5k .he2 .hero5i .hes3 .het3 .hi3b .hi3er .hon5ey .hon3o .hov5 .id4l .idol3 .im3m .im5pin .in1 .in3ci .ine2 .in2k .in3s .ir5r .is4i .ju3r .la4cy .la4m .lat5er .lath5 .le2 .leg5e .len4 .lep5 .lev1 .li4g .lig5a .li2n .li3o .li4t .mag5a5 .mal5o .man5a .mar5ti .me2 .mer3c .me5ter .mis1 .mist5i .mon3e .mo3ro .mu5ta .muta5b .ni4c .od2 .odd5 .of5te .or5ato .or3c .or1d .or3t .os3 .os4tl .oth3 .out3 .ped5al .pe5te .pe5tit .pi4e .pio5n .pi2t .pre3m .ra4c .ran4t .ratio5na .ree2 .re5mit .res2 .re5stat .ri4g .rit5u .ro4q .ros5t .row5d .ru4d .sci3e .self5 .sell5 .se2n .se5rie .sh2 .si2 .sing4 .st4 .sta5bl .sy2 .ta4 .te4 .ten5an .th2 .ti2 .til4 .tim5o5 .ting4 .tin5k .ton4a .to4p .top5i .tou5s .trib5ut .un1a .un3ce .under5 .un1e .un5k .un5o .un3u .up3 .ure3 .us5a .ven4de .ve5ra .wil5i .ye4 4ab. a5bal a5ban abe2 ab5erd abi5a ab5it5ab ab5lat ab5o5liz 4abr ab5rog ab3ul a4car ac5ard ac5aro a5ceou ac1er a5chet 4a2ci a3cie ac1in a3cio ac5rob act5if ac3ul ac4um a2d ad4din ad5er. 2adi a3dia ad3ica adi4er a3dio a3dit a5diu ad4le ad3ow ad5ran ad4su 4adu a3duc ad5um ae4r aeri4e a2f aff4 a4gab aga4n ag5ell age4o 4ageu ag1i 4ag4l ag1n a2go 3agog ag3oni a5guer ag5ul a4gy a3ha a3he ah4l a3ho ai2 a5ia a3ic. ai5ly a4i4n ain5in ain5o ait5en a1j ak1en al5ab al3ad a4lar 4aldi 2ale al3end a4lenti a5le5o al1i al4ia. ali4e al5lev 4allic 4alm a5log. a4ly. 4alys 5a5lyst 5alyt 3alyz 4ama am5ab am3ag ama5ra am5asc a4matis a4m5ato am5era am3ic am5if am5ily am1in ami4no a2mo a5mon amor5i amp5en a2n an3age 3analy a3nar an3arc anar4i a3nati 4and ande4s an3dis an1dl an4dow a5nee a3nen an5est. a3neu 2ang ang5ie an1gl a4n1ic a3nies an3i3f an4ime a5nimi a5nine an3io a3nip an3ish an3it a3niu an4kli 5anniz ano4 an5ot anoth5 an2sa an4sco an4sn an2sp ans3po an4st an4sur antal4 an4tie 4anto an2tr an4tw an3ua an3ul a5nur 4ao apar4 ap5at ap5ero a3pher 4aphi a4pilla ap5illar ap3in ap3ita a3pitu a2pl apoc5 ap5ola apor5i apos3t aps5es a3pu aque5 2a2r ar3act a5rade ar5adis ar3al a5ramete aran4g ara3p ar4at a5ratio ar5ativ a5rau ar5av4 araw4 arbal4 ar4chan ar5dine ar4dr ar5eas a3ree ar3ent a5ress ar4fi ar4fl ar1i ar5ial ar3ian a3riet ar4im ar5inat ar3io ar2iz ar2mi ar5o5d a5roni a3roo ar2p ar3q arre4 ar4sa ar2sh 4as. as4ab as3ant ashi4 a5sia. a3sib a3sic 5a5si4t ask3i as4l a4soc as5ph as4sh as3ten as1tr asur5a a2ta at3abl at5ac at3alo at5ap ate5c at5ech at3ego at3en. at3era ater5n a5terna at3est at5ev 4ath ath5em a5then at4ho ath5om 4ati. a5tia at5i5b at1ic at3if ation5ar at3itu a4tog a2tom at5omiz a4top a4tos a1tr at5rop at4sk at4tag at5te at4th a2tu at5ua at5ue at3ul at3ura a2ty au4b augh3 au3gu au4l2 aun5d au3r au5sib aut5en au1th a2va av3ag a5van ave4no av3era av5ern av5ery av1i avi4er av3ig av5oc a1vor 3away aw3i aw4ly aws4 ax4ic ax4id ay5al aye4 ays4 azi4er azz5i 5ba. bad5ger ba4ge bal1a ban5dag ban4e ban3i barbi5 bari4a bas4si 1bat ba4z 2b1b b2be b3ber bbi4na 4b1d 4be. beak4 beat3 4be2d be3da be3de be3di be3gi be5gu 1bel be1li be3lo 4be5m be5nig be5nu 4bes4 be3sp be5str 3bet bet5iz be5tr be3tw be3w be5yo 2bf 4b3h bi2b bi4d 3bie bi5en bi4er 2b3if 1bil bi3liz bina5r4 bin4d bi5net bi3ogr bi5ou bi2t 3bi3tio bi3tr 3bit5ua b5itz b1j bk4 b2l2 blath5 b4le. blen4 5blesp b3lis b4lo blun4t 4b1m 4b3n bne5g 3bod bod3i bo4e bol3ic bom4bi bon4a bon5at 3boo 5bor. 4b1ora bor5d 5bore 5bori 5bos4 b5ota both5 bo4to bound3 4bp 4brit broth3 2b5s2 bsor4 2bt bt4l b4to b3tr buf4fer bu4ga bu3li bumi4 bu4n bunt4i bu3re bus5ie buss4e 5bust 4buta 3butio b5uto b1v 4b5w 5by. bys4 1ca cab3in ca1bl cach4 ca5den 4cag4 2c5ah ca3lat cal4la call5in 4calo can5d can4e can4ic can5is can3iz can4ty cany4 ca5per car5om cast5er cas5tig 4casy ca4th 4cativ cav5al c3c ccha5 cci4a ccompa5 ccon4 ccou3t 2ce. 4ced. 4ceden 3cei 5cel. 3cell 1cen 3cenc 2cen4e 4ceni 3cent 3cep ce5ram 4cesa 3cessi ces5si5b ces5t cet4 c5e4ta cew4 2ch 4ch. 4ch3ab 5chanic ch5a5nis che2 cheap3 4ched che5lo 3chemi ch5ene ch3er. ch3ers 4ch1in 5chine. ch5iness 5chini 5chio 3chit chi2z 3cho2 ch4ti 1ci 3cia ci2a5b cia5r ci5c 4cier 5cific. 4cii ci4la 3cili 2cim 2cin c4ina 3cinat cin3em c1ing c5ing. 5cino cion4 4cipe ci3ph 4cipic 4cista 4cisti 2c1it cit3iz 5ciz ck1 ck3i 1c4l4 4clar c5laratio 5clare cle4m 4clic clim4 cly4 c5n 1co co5ag coe2 2cog co4gr coi4 co3inc col5i 5colo col3or com5er con4a c4one con3g con5t co3pa cop3ic co4pl 4corb coro3n cos4e cov1 cove4 cow5a coz5e co5zi c1q cras5t 5crat. 5cratic cre3at 5cred 4c3reta cre4v cri2 cri5f c4rin cris4 5criti cro4pl crop5o cros4e cru4d 4c3s2 2c1t cta4b ct5ang c5tant c2te c3ter c4ticu ctim3i ctu4r c4tw cud5 c4uf c4ui cu5ity 5culi cul4tis 3cultu cu2ma c3ume cu4mi 3cun cu3pi cu5py cur5a4b cu5ria 1cus cuss4i 3c4ut cu4tie 4c5utiv 4cutr 1cy cze4 1d2a 5da. 2d3a4b dach4 4daf 2dag da2m2 dan3g dard5 dark5 4dary 3dat 4dativ 4dato 5dav4 dav5e 5day d1b d5c d1d4 2de. deaf5 deb5it de4bon decan4 de4cil de5com 2d1ed 4dee. de5if deli4e del5i5q de5lo d4em 5dem. 3demic dem5ic. de5mil de4mons demor5 1den de4nar de3no denti5f de3nu de1p de3pa depi4 de2pu d3eq d4erh 5derm dern5iz der5s des2 d2es. de1sc de2s5o des3ti de3str de4su de1t de2to de1v dev3il 4dey 4d1f d4ga d3ge4t dg1i d2gy d1h2 5di. 1d4i3a dia5b di4cam d4ice 3dict 3did 5di3en d1if di3ge di4lato d1in 1dina 3dine. 5dini di5niz 1dio dio5g di4pl dir2 di1re dirt5i dis1 5disi d4is3t d2iti 1di1v d1j d5k2 4d5la 3dle. 3dled 3dles. 4dless 2d3lo 4d5lu 2dly d1m 4d1n4 1do 3do. do5de 5doe 2d5of d4og do4la doli4 do5lor dom5iz do3nat doni4 doo3d dop4p d4or 3dos 4d5out do4v 3dox d1p 1dr drag5on 4drai dre4 drea5r 5dren dri4b dril4 dro4p 4drow 5drupli 4dry 2d1s2 ds4p d4sw d4sy d2th 1du d1u1a du2c d1uca duc5er 4duct. 4ducts du5el du4g d3ule dum4be du4n 4dup du4pe d1v d1w d2y 5dyn dy4se dys5p e1a4b e3act ead1 ead5ie ea4ge ea5ger ea4l eal5er eal3ou eam3er e5and ear3a ear4c ear5es ear4ic ear4il ear5k ear2t eart3e ea5sp e3ass east3 ea2t eat5en eath3i e5atif e4a3tu ea2v eav3en eav5i eav5o 2e1b e4bel. e4bels e4ben e4bit e3br e4cad ecan5c ecca5 e1ce ec5essa ec2i e4cib ec5ificat ec5ifie ec5ify ec3im eci4t e5cite e4clam e4clus e2col e4comm e4compe e4conc e2cor ec3ora eco5ro e1cr e4crem ec4tan ec4te e1cu e4cul ec3ula 2e2da 4ed3d e4d1er ede4s 4edi e3dia ed3ib ed3ica ed3im ed1it edi5z 4edo e4dol edon2 e4dri e4dul ed5ulo ee2c eed3i ee2f eel3i ee4ly ee2m ee4na ee4p1 ee2s4 eest4 ee4ty e5ex e1f e4f3ere 1eff e4fic 5efici efil4 e3fine ef5i5nite 3efit efor5es e4fuse. 4egal eger4 eg5ib eg4ic eg5ing e5git5 eg5n e4go. e4gos eg1ul e5gur 5egy e1h4 eher4 ei2 e5ic ei5d eig2 ei5gl e3imb e3inf e1ing e5inst eir4d eit3e ei3th e5ity e1j e4jud ej5udi eki4n ek4la e1la e4la. e4lac elan4d el5ativ e4law elaxa4 e3lea el5ebra 5elec e4led el3ega e5len e4l1er e1les el2f el2i e3libe e4l5ic. el3ica e3lier el5igib e5lim e4l3ing e3lio e2lis el5ish e3liv3 4ella el4lab ello4 e5loc el5og el3op. el2sh el4ta e5lud el5ug e4mac e4mag e5man em5ana em5b e1me e2mel e4met em3ica emi4e em5igra em1in2 em5ine em3i3ni e4mis em5ish e5miss em3iz 5emniz emo4g emoni5o em3pi e4mul em5ula emu3n e3my en5amo e4nant ench4er en3dic e5nea e5nee en3em en5ero en5esi en5est en3etr e3new en5ics e5nie e5nil e3nio en3ish en3it e5niu 5eniz 4enn 4eno eno4g e4nos en3ov en4sw ent5age 4enthes en3ua en5uf e3ny. 4en3z e5of eo2g e4oi4 e3ol eop3ar e1or eo3re eo5rol eos4 e4ot eo4to e5out e5ow e2pa e3pai ep5anc e5pel e3pent ep5etitio ephe4 e4pli e1po e4prec ep5reca e4pred ep3reh e3pro e4prob ep4sh ep5ti5b e4put ep5uta e1q equi3l e4q3ui3s er1a era4b 4erand er3ar 4erati. 2erb er4bl er3ch er4che 2ere. e3real ere5co ere3in er5el. er3emo er5ena er5ence 4erene er3ent ere4q er5ess er3est eret4 er1h er1i e1ria4 5erick e3rien eri4er er3ine e1rio 4erit er4iu eri4v e4riva er3m4 er4nis 4ernit 5erniz er3no 2ero er5ob e5roc ero4r er1ou er1s er3set ert3er 4ertl er3tw 4eru eru4t 5erwau e1s4a e4sage. e4sages es2c e2sca es5can e3scr es5cu e1s2e e2sec es5ecr es5enc e4sert. e4serts e4serva 4esh e3sha esh5en e1si e2sic e2sid es5iden es5igna e2s5im es4i4n esis4te esi4u e5skin es4mi e2sol es3olu e2son es5ona e1sp es3per es5pira es4pre 2ess es4si4b estan4 es3tig es5tim 4es2to e3ston 2estr e5stro estruc5 e2sur es5urr es4w eta4b eten4d e3teo ethod3 et1ic e5tide etin4 eti4no e5tir e5titio et5itiv 4etn et5ona e3tra e3tre et3ric et5rif et3rog et5ros et3ua et5ym et5z 4eu e5un e3up eu3ro eus4 eute4 euti5l eu5tr eva2p5 e2vas ev5ast e5vea ev3ell evel3o e5veng even4i ev1er e5verb e1vi ev3id evi4l e4vin evi4v e5voc e5vu e1wa e4wag e5wee e3wh ewil5 ew3ing e3wit 1exp 5eyc 5eye. eys4 1fa fa3bl fab3r fa4ce 4fag fain4 fall5e 4fa4ma fam5is 5far far5th fa3ta fa3the 4fato fault5 4f5b 4fd 4fe. feas4 feath3 fe4b 4feca 5fect 2fed fe3li fe4mo fen2d fend5e fer1 5ferr fev4 4f1f f4fes f4fie f5fin. f2f5is f4fly f2fy 4fh 1fi fi3a 2f3ic. 4f3ical f3ican 4ficate f3icen fi3cer fic4i 5ficia 5ficie 4fics fi3cu fi5del fight5 fil5i fill5in 4fily 2fin 5fina fin2d5 fi2ne f1in3g fin4n fis4ti f4l2 f5less flin4 flo3re f2ly5 4fm 4fn 1fo 5fon fon4de fon4t fo2r fo5rat for5ay fore5t for4i fort5a fos5 4f5p fra4t f5rea fres5c fri2 fril4 frol5 2f3s 2ft f4to f2ty 3fu fu5el 4fug fu4min fu5ne fu3ri fusi4 fus4s 4futa 1fy 1ga gaf4 5gal. 3gali ga3lo 2gam ga5met g5amo gan5is ga3niz gani5za 4gano gar5n4 gass4 gath3 4gativ 4gaz g3b gd4 2ge. 2ged geez4 gel4in ge5lis ge5liz 4gely 1gen ge4nat ge5niz 4geno 4geny 1geo ge3om g4ery 5gesi geth5 4geto ge4ty ge4v 4g1g2 g2ge g3ger gglu5 ggo4 gh3in gh5out gh4to 5gi. 1gi4a gia5r g1ic 5gicia g4ico gien5 5gies. gil4 g3imen 3g4in. gin5ge 5g4ins 5gio 3gir gir4l g3isl gi4u 5giv 3giz gl2 gla4 glad5i 5glas 1gle gli4b g3lig 3glo glo3r g1m g4my gn4a g4na. gnet4t g1ni g2nin g4nio g1no g4non 1go 3go. gob5 5goe 3g4o4g go3is gon2 4g3o3na gondo5 go3ni 5goo go5riz gor5ou 5gos. gov1 g3p 1gr 4grada g4rai gran2 5graph. g5rapher 5graphic 4graphy 4gray gre4n 4gress. 4grit g4ro gruf4 gs2 g5ste gth3 gu4a 3guard 2gue 5gui5t 3gun 3gus 4gu4t g3w 1gy 2g5y3n gy5ra h3ab4l hach4 hae4m hae4t h5agu ha3la hala3m ha4m han4ci han4cy 5hand. han4g hang5er hang5o h5a5niz han4k han4te hap3l hap5t ha3ran ha5ras har2d hard3e har4le harp5en har5ter has5s haun4 5haz haz3a h1b 1head 3hear he4can h5ecat h4ed he5do5 he3l4i hel4lis hel4ly h5elo hem4p he2n hena4 hen5at heo5r hep5 h4era hera3p her4ba here5a h3ern h5erou h3ery h1es he2s5p he4t het4ed heu4 h1f h1h hi5an hi4co high5 h4il2 himer4 h4ina hion4e hi4p hir4l hi3ro hir4p hir4r his3el his4s hith5er hi2v 4hk 4h1l4 hlan4 h2lo hlo3ri 4h1m hmet4 2h1n h5odiz h5ods ho4g hoge4 hol5ar 3hol4e ho4ma home3 hon4a ho5ny 3hood hoon4 hor5at ho5ris hort3e ho5ru hos4e ho5sen hos1p 1hous house3 hov5el 4h5p 4hr4 hree5 hro5niz hro3po 4h1s2 h4sh h4tar ht1en ht5es h4ty hu4g hu4min hun5ke hun4t hus3t4 hu4t h1w h4wart hy3pe hy3ph hy2s 2i1a i2al iam4 iam5ete i2an 4ianc ian3i 4ian4t ia5pe iass4 i4ativ ia4tric i4atu ibe4 ib3era ib5ert ib5ia ib3in ib5it. ib5ite i1bl ib3li i5bo i1br i2b5ri i5bun 4icam 5icap 4icar i4car. i4cara icas5 i4cay iccu4 4iceo 4ich 2ici i5cid ic5ina i2cip ic3ipa i4cly i2c5oc 4i1cr 5icra i4cry ic4te ictu2 ic4t3ua ic3ula ic4um ic5uo i3cur 2id i4dai id5anc id5d ide3al ide4s i2di id5ian idi4ar i5die id3io idi5ou id1it id5iu i3dle i4dom id3ow i4dr i2du id5uo 2ie4 ied4e 5ie5ga ield3 ien5a4 ien4e i5enn i3enti i1er. i3esc i1est i3et 4if. if5ero iff5en if4fr 4ific. i3fie i3fl 4ift 2ig iga5b ig3era ight3i 4igi i3gib ig3il ig3in ig3it i4g4l i2go ig3or ig5ot i5gre igu5i ig1ur i3h 4i5i4 i3j 4ik i1la il3a4b i4lade i2l5am ila5ra i3leg il1er ilev4 il5f il1i il3ia il2ib il3io il4ist 2ilit il2iz ill5ab 4iln il3oq il4ty il5ur il3v i4mag im3age ima5ry imenta5r 4imet im1i im5ida imi5le i5mini 4imit im4ni i3mon i2mu im3ula 2in. i4n3au 4inav incel4 in3cer 4ind in5dling 2ine i3nee iner4ar i5ness 4inga 4inge in5gen 4ingi in5gling 4ingo 4ingu 2ini i5ni. i4nia in3io in1is i5nite. 5initio in3ity 4ink 4inl 2inn 2i1no i4no4c ino4s i4not 2ins in3se insur5a 2int. 2in4th in1u i5nus 4iny 2io 4io. ioge4 io2gr i1ol io4m ion3at ion4ery ion3i io5ph ior3i i4os io5th i5oti io4to i4our 2ip ipe4 iphras4 ip3i ip4ic ip4re4 ip3ul i3qua iq5uef iq3uid iq3ui3t 4ir i1ra ira4b i4rac ird5e ire4de i4ref i4rel4 i4res ir5gi ir1i iri5de ir4is iri3tu 5i5r2iz ir4min iro4g 5iron. ir5ul 2is. is5ag is3ar isas5 2is1c is3ch 4ise is3er 3isf is5han is3hon ish5op is3ib isi4d i5sis is5itiv 4is4k islan4 4isms i2so iso5mer is1p is2pi is4py 4is1s is4sal issen4 is4ses is4ta. is1te is1ti ist4ly 4istral i2su is5us 4ita. ita4bi i4tag 4ita5m i3tan i3tat 2ite it3era i5teri it4es 2ith i1ti 4itia 4i2tic it3ica 5i5tick it3ig it5ill i2tim 2itio 4itis i4tism i2t5o5m 4iton i4tram it5ry 4itt it3uat i5tud it3ul 4itz. i1u 2iv iv3ell iv3en. i4v3er. i4vers. iv5il. iv5io iv1it i5vore iv3o3ro i4v3ot 4i5w ix4o 4iy 4izar izi4 5izont 5ja jac4q ja4p 1je jer5s 4jestie 4jesty jew3 jo4p 5judg 3ka. k3ab k5ag kais4 kal4 k1b k2ed 1kee ke4g ke5li k3en4d k1er kes4 k3est. ke4ty k3f kh4 k1i 5ki. 5k2ic k4ill kilo5 k4im k4in. kin4de k5iness kin4g ki4p kis4 k5ish kk4 k1l 4kley 4kly k1m k5nes 1k2no ko5r kosh4 k3ou kro5n 4k1s2 k4sc ks4l k4sy k5t k1w lab3ic l4abo laci4 l4ade la3dy lag4n lam3o 3land lan4dl lan5et lan4te lar4g lar3i las4e la5tan 4lateli 4lativ 4lav la4v4a 2l1b lbin4 4l1c2 lce4 l3ci 2ld l2de ld4ere ld4eri ldi4 ld5is l3dr l4dri le2a le4bi left5 5leg. 5legg le4mat lem5atic 4len. 3lenc 5lene. 1lent le3ph le4pr lera5b ler4e 3lerg 3l4eri l4ero les2 le5sco 5lesq 3less 5less. l3eva lev4er. lev4era lev4ers 3ley 4leye 2lf l5fr 4l1g4 l5ga lgar3 l4ges lgo3 2l3h li4ag li2am liar5iz li4as li4ato li5bi 5licio li4cor 4lics 4lict. l4icu l3icy l3ida lid5er 3lidi lif3er l4iff li4fl 5ligate 3ligh li4gra 3lik 4l4i4l lim4bl lim3i li4mo l4im4p l4ina 1l4ine lin3ea lin3i link5er li5og 4l4iq lis4p l1it l2it. 5litica l5i5tics liv3er l1iz 4lj lka3 l3kal lka4t l1l l4law l2le l5lea l3lec l3leg l3lel l3le4n l3le4t ll2i l2lin4 l5lina ll4o lloqui5 ll5out l5low 2lm l5met lm3ing l4mod lmon4 2l1n2 3lo. lob5al lo4ci 4lof 3logic l5ogo 3logu lom3er 5long lon4i l3o3niz lood5 5lope. lop3i l3opm lora4 lo4rato lo5rie lor5ou 5los. los5et 5losophiz 5losophy los4t lo4ta loun5d 2lout 4lov 2lp lpa5b l3pha l5phi lp5ing l3pit l4pl l5pr 4l1r 2l1s2 l4sc l2se l4sie 4lt lt5ag ltane5 l1te lten4 ltera4 lth3i l5ties. ltis4 l1tr ltu2 ltur3a lu5a lu3br luch4 lu3ci lu3en luf4 lu5id lu4ma 5lumi l5umn. 5lumnia lu3o luo3r 4lup luss4 lus3te 1lut l5ven l5vet4 2l1w 1ly 4lya 4lyb ly5me ly3no 2lys4 l5yse 1ma 2mab ma2ca ma5chine ma4cl mag5in 5magn 2mah maid5 4mald ma3lig ma5lin mal4li mal4ty 5mania man5is man3iz 4map ma5rine. ma5riz mar4ly mar3v ma5sce mas4e mas1t 5mate math3 ma3tis 4matiza 4m1b mba4t5 m5bil m4b3ing mbi4v 4m5c 4me. 2med 4med. 5media me3die m5e5dy me2g mel5on mel4t me2m mem1o3 1men men4a men5ac men4de 4mene men4i mens4 mensu5 3ment men4te me5on m5ersa 2mes 3mesti me4ta met3al me1te me5thi m4etr 5metric me5trie me3try me4v 4m1f 2mh 5mi. mi3a mid4a mid4g mig4 3milia m5i5lie m4ill min4a 3mind m5inee m4ingl min5gli m5ingly min4t m4inu miot4 m2is mis4er. mis5l mis4ti m5istry 4mith m2iz 4mk 4m1l m1m mma5ry 4m1n mn4a m4nin mn4o 1mo 4mocr 5mocratiz mo2d1 mo4go mois2 moi5se 4mok mo5lest mo3me mon5et mon5ge moni3a mon4ism mon4ist mo3niz monol4 mo3ny. mo2r 4mora. mos2 mo5sey mo3sp moth3 m5ouf 3mous mo2v 4m1p mpara5 mpa5rab mpar5i m3pet mphas4 m2pi mpi4a mp5ies m4p1in m5pir mp5is mpo3ri mpos5ite m4pous mpov5 mp4tr m2py 4m3r 4m1s2 m4sh m5si 4mt 1mu mula5r4 5mult multi3 3mum mun2 4mup mu4u 4mw 1na 2n1a2b n4abu 4nac. na4ca n5act nag5er. nak4 na4li na5lia 4nalt na5mit n2an nanci4 nan4it nank4 nar3c 4nare nar3i nar4l n5arm n4as nas4c nas5ti n2at na3tal nato5miz n2au nau3se 3naut nav4e 4n1b4 ncar5 n4ces. n3cha n5cheo n5chil n3chis nc1in nc4it ncour5a n1cr n1cu n4dai n5dan n1de nd5est. ndi4b n5d2if n1dit n3diz n5duc ndu4r nd2we 2ne. n3ear ne2b neb3u ne2c 5neck 2ned ne4gat neg5ativ 5nege ne4la nel5iz ne5mi ne4mo 1nen 4nene 3neo ne4po ne2q n1er nera5b n4erar n2ere n4er5i ner4r 1nes 2nes. 4nesp 2nest 4nesw 3netic ne4v n5eve ne4w n3f n4gab n3gel nge4n4e n5gere n3geri ng5ha n3gib ng1in n5git n4gla ngov4 ng5sh n1gu n4gum n2gy 4n1h4 nha4 nhab3 nhe4 3n4ia ni3an ni4ap ni3ba ni4bl ni4d ni5di ni4er ni2fi ni5ficat n5igr nik4 n1im ni3miz n1in 5nine. nin4g ni4o 5nis. nis4ta n2it n4ith 3nitio n3itor ni3tr n1j 4nk2 n5kero n3ket nk3in n1kl 4n1l n5m nme4 nmet4 4n1n2 nne4 nni3al nni4v nob4l no3ble n5ocl 4n3o2d 3noe 4nog noge4 nois5i no5l4i 5nologis 3nomic n5o5miz no4mo no3my no4n non4ag non5i n5oniz 4nop 5nop5o5li nor5ab no4rary 4nosc nos4e nos5t no5ta 1nou 3noun nov3el3 nowl3 n1p4 npi4 npre4c n1q n1r nru4 2n1s2 ns5ab nsati4 ns4c n2se n4s3es nsid1 nsig4 n2sl ns3m n4soc ns4pe n5spi nsta5bl n1t nta4b nter3s nt2i n5tib nti4er nti2f n3tine n4t3ing nti4p ntrol5li nt4s ntu3me nu1a nu4d nu5en nuf4fe n3uin 3nu3it n4um nu1me n5umi 3nu4n n3uo nu3tr n1v2 n1w4 nym4 nyp4 4nz n3za 4oa oad3 o5a5les oard3 oas4e oast5e oat5i ob3a3b o5bar obe4l o1bi o2bin ob5ing o3br ob3ul o1ce och4 o3chet ocif3 o4cil o4clam o4cod oc3rac oc5ratiz ocre3 5ocrit octor5a oc3ula o5cure od5ded od3ic odi3o o2do4 odor3 od5uct. od5ucts o4el o5eng o3er oe4ta o3ev o2fi of5ite ofit4t o2g5a5r og5ativ o4gato o1ge o5gene o5geo o4ger o3gie 1o1gis og3it o4gl o5g2ly 3ogniz o4gro ogu5i 1ogy 2ogyn o1h2 ohab5 oi2 oic3es oi3der oiff4 oig4 oi5let o3ing oint5er o5ism oi5son oist5en oi3ter o5j 2ok o3ken ok5ie o1la o4lan olass4 ol2d old1e ol3er o3lesc o3let ol4fi ol2i o3lia o3lice ol5id. o3li4f o5lil ol3ing o5lio o5lis. ol3ish o5lite o5litio o5liv olli4e ol5ogiz olo4r ol5pl ol2t ol3ub ol3ume ol3un o5lus ol2v o2ly om5ah oma5l om5atiz om2be om4bl o2me om3ena om5erse o4met om5etry o3mia om3ic. om3ica o5mid om1in o5mini 5ommend omo4ge o4mon om3pi ompro5 o2n on1a on4ac o3nan on1c 3oncil 2ond on5do o3nen on5est on4gu on1ic o3nio on1is o5niu on3key on4odi on3omy on3s onspi4 onspir5a onsu4 onten4 on3t4i ontif5 on5um onva5 oo2 ood5e ood5i oo4k oop3i o3ord oost5 o2pa ope5d op1er 3opera 4operag 2oph o5phan o5pher op3ing o3pit o5pon o4posi o1pr op1u opy5 o1q o1ra o5ra. o4r3ag or5aliz or5ange ore5a o5real or3ei ore5sh or5est. orew4 or4gu 4o5ria or3ica o5ril or1in o1rio or3ity o3riu or2mi orn2e o5rof or3oug or5pe 3orrh or4se ors5en orst4 or3thi or3thy or4ty o5rum o1ry os3al os2c os4ce o3scop 4oscopi o5scr os4i4e os5itiv os3ito os3ity osi4u os4l o2so os4pa os4po os2ta o5stati os5til os5tit o4tan otele4g ot3er. ot5ers o4tes 4oth oth5esi oth3i4 ot3ic. ot5ica o3tice o3tif o3tis oto5s ou2 ou3bl ouch5i ou5et ou4l ounc5er oun2d ou5v ov4en over4ne over3s ov4ert o3vis oviti4 o5v4ol ow3der ow3el ow5est ow1i own5i o4wo oy1a 1pa pa4ca pa4ce pac4t p4ad 5pagan p3agat p4ai pain4 p4al pan4a pan3el pan4ty pa3ny pa1p pa4pu para5bl par5age par5di 3pare par5el p4a4ri par4is pa2te pa5ter 5pathic pa5thy pa4tric pav4 3pay 4p1b pd4 4pe. 3pe4a pear4l pe2c 2p2ed 3pede 3pedi pedia4 ped4ic p4ee pee4d pek4 pe4la peli4e pe4nan p4enc pen4th pe5on p4era. pera5bl p4erag p4eri peri5st per4mal perme5 p4ern per3o per3ti pe5ru per1v pe2t pe5ten pe5tiz 4pf 4pg 4ph. phar5i phe3no ph4er ph4es. ph1ic 5phie ph5ing 5phisti 3phiz ph2l 3phob 3phone 5phoni pho4r 4phs ph3t 5phu 1phy pi3a pian4 pi4cie pi4cy p4id p5ida pi3de 5pidi 3piec pi3en pi4grap pi3lo pi2n p4in. pind4 p4ino 3pi1o pion4 p3ith pi5tha pi2tu 2p3k2 1p2l2 3plan plas5t pli3a pli5er 4plig pli4n ploi4 plu4m plum4b 4p1m 2p3n po4c 5pod. po5em po3et5 5po4g poin2 5point poly5t po4ni po4p 1p4or po4ry 1pos pos1s p4ot po4ta 5poun 4p1p ppa5ra p2pe p4ped p5pel p3pen p3per p3pet ppo5site pr2 pray4e 5preci pre5co pre3em pref5ac pre4la pre3r p3rese 3press pre5ten pre3v 5pri4e prin4t3 pri4s pris3o p3roca prof5it pro3l pros3e pro1t 2p1s2 p2se ps4h p4sib 2p1t pt5a4b p2te p2th pti3m ptu4r p4tw pub3 pue4 puf4 pul3c pu4m pu2n pur4r 5pus pu2t 5pute put3er pu3tr put4ted put4tin p3w qu2 qua5v 2que. 3quer 3quet 2rab ra3bi rach4e r5acl raf5fi raf4t r2ai ra4lo ram3et r2ami rane5o ran4ge r4ani ra5no rap3er 3raphy rar5c rare4 rar5ef 4raril r2as ration4 rau4t ra5vai rav3el ra5zie r1b r4bab r4bag rbi2 rbi4f r2bin r5bine rb5ing. rb4o r1c r2ce rcen4 r3cha rch4er r4ci4b rc4it rcum3 r4dal rd2i rdi4a rdi4er rdin4 rd3ing 2re. re1al re3an re5arr 5reav re4aw r5ebrat rec5oll rec5ompe re4cre 2r2ed re1de re3dis red5it re4fac re2fe re5fer. re3fi re4fy reg3is re5it re1li re5lu r4en4ta ren4te re1o re5pin re4posi re1pu r1er4 r4eri rero4 re5ru r4es. re4spi ress5ib res2t re5stal re3str re4ter re4ti4z re3tri reu2 re5uti rev2 re4val rev3el r5ev5er. re5vers re5vert re5vil rev5olu re4wh r1f rfu4 r4fy rg2 rg3er r3get r3gic rgi4n rg3ing r5gis r5git r1gl rgo4n r3gu rh4 4rh. 4rhal ri3a ria4b ri4ag r4ib rib3a ric5as r4ice 4rici 5ricid ri4cie r4ico rid5er ri3enc ri3ent ri1er ri5et rig5an 5rigi ril3iz 5riman rim5i 3rimo rim4pe r2ina 5rina. rin4d rin4e rin4g ri1o 5riph riph5e ri2pl rip5lic r4iq r2is r4is. ris4c r3ish ris4p ri3ta3b r5ited. rit5er. rit5ers rit3ic ri2tu rit5ur riv5el riv3et riv3i r3j r3ket rk4le rk4lin r1l rle4 r2led r4lig r4lis rl5ish r3lo4 r1m rma5c r2me r3men rm5ers rm3ing r4ming. r4mio r3mit r4my r4nar r3nel r4ner r5net r3ney r5nic r1nis4 r3nit r3niv rno4 r4nou r3nu rob3l r2oc ro3cr ro4e ro1fe ro5fil rok2 ro5ker 5role. rom5ete rom4i rom4p ron4al ron4e ro5n4is ron4ta 1room 5root ro3pel rop3ic ror3i ro5ro ros5per ros4s ro4the ro4ty ro4va rov5el rox5 r1p r4pea r5pent rp5er. r3pet rp4h4 rp3ing r3po r1r4 rre4c rre4f r4reo rre4st rri4o rri4v rron4 rros4 rrys4 4rs2 r1sa rsa5ti rs4c r2se r3sec rse4cr rs5er. rs3es rse5v2 r1sh r5sha r1si r4si4b rson3 r1sp r5sw rtach4 r4tag r3teb rten4d rte5o r1ti rt5ib rti4d r4tier r3tig rtil3i rtil4l r4tily r4tist r4tiv r3tri rtroph4 rt4sh ru3a ru3e4l ru3en ru4gl ru3in rum3pl ru2n runk5 run4ty r5usc ruti5n rv4e rvel4i r3ven rv5er. r5vest r3vey r3vic rvi4v r3vo r1w ry4c 5rynge ry3t sa2 2s1ab 5sack sac3ri s3act 5sai salar4 sal4m sa5lo sal4t 3sanc san4de s1ap sa5ta 5sa3tio sat3u sau4 sa5vor 5saw 4s5b scan4t5 sca4p scav5 s4ced 4scei s4ces sch2 s4cho 3s4cie 5scin4d scle5 s4cli scof4 4scopy scour5a s1cu 4s5d 4se. se4a seas4 sea5w se2c3o 3sect 4s4ed se4d4e s5edl se2g seg3r 5sei se1le 5self 5selv 4seme se4mol sen5at 4senc sen4d s5ened sen5g s5enin 4sentd 4sentl sep3a3 4s1er. s4erl ser4o 4servo s1e4s se5sh ses5t 5se5um 5sev sev3en sew4i 5sex 4s3f 2s3g s2h 2sh. sh1er 5shev sh1in sh3io 3ship shiv5 sho4 sh5old shon3 shor4 short5 4shw si1b s5icc 3side. 5sides 5sidi si5diz 4signa sil4e 4sily 2s1in s2ina 5sine. s3ing 1sio 5sion sion5a si2r sir5a 1sis 3sitio 5siu 1siv 5siz sk2 4ske s3ket sk5ine sk5ing s1l2 s3lat s2le slith5 2s1m s3ma small3 sman3 smel4 s5men 5smith smol5d4 s1n4 1so so4ce soft3 so4lab sol3d2 so3lic 5solv 3som 3s4on. sona4 son4g s4op 5sophic s5ophiz s5ophy sor5c sor5d 4sov so5vi 2spa 5spai spa4n spen4d 2s5peo 2sper s2phe 3spher spho5 spil4 sp5ing 4spio s4ply s4pon spor4 4spot squal4l s1r 2ss s1sa ssas3 s2s5c s3sel s5seng s4ses. s5set s1si s4sie ssi4er ss5ily s4sl ss4li s4sn sspend4 ss2t ssur5a ss5w 2st. s2tag s2tal stam4i 5stand s4ta4p 5stat. s4ted stern5i s5tero ste2w stew5a s3the st2i s4ti. s5tia s1tic 5stick s4tie s3tif st3ing 5stir s1tle 5stock stom3a 5stone s4top 3store st4r s4trad 5stratu s4tray s4trid 4stry 4st3w s2ty 1su su1al su4b3 su2g3 su5is suit3 s4ul su2m sum3i su2n su2r 4sv sw2 4swo s4y 4syc 3syl syn5o sy5rin 1ta 3ta. 2tab ta5bles 5taboliz 4taci ta5do 4taf4 tai5lo ta2l ta5la tal5en tal3i 4talk tal4lis ta5log ta5mo tan4de tanta3 ta5per ta5pl tar4a 4tarc 4tare ta3riz tas4e ta5sy 4tatic ta4tur taun4 tav4 2taw tax4is 2t1b 4tc t4ch tch5et 4t1d 4te. tead4i 4teat tece4 5tect 2t1ed te5di 1tee teg4 te5ger te5gi 3tel. teli4 5tels te2ma2 tem3at 3tenan 3tenc 3tend 4tenes 1tent ten4tag 1teo te4p te5pe ter3c 5ter3d 1teri ter5ies ter3is teri5za 5ternit ter5v 4tes. 4tess t3ess. teth5e 3teu 3tex 4tey 2t1f 4t1g 2th. than4 th2e 4thea th3eas the5at the3is 3thet th5ic. th5ica 4thil 5think 4thl th5ode 5thodic 4thoo thor5it tho5riz 2ths 1tia ti4ab ti4ato 2ti2b 4tick t4ico t4ic1u 5tidi 3tien tif2 ti5fy 2tig 5tigu till5in 1tim 4timp tim5ul 2t1in t2ina 3tine. 3tini 1tio ti5oc tion5ee 5tiq ti3sa 3tise tis4m ti5so tis4p 5tistica ti3tl ti4u 1tiv tiv4a 1tiz ti3za ti3zen 2tl t5la tlan4 3tle. 3tled 3tles. t5let. t5lo 4t1m tme4 2t1n2 1to to3b to5crat 4todo 2tof to2gr to5ic to2ma tom4b to3my ton4ali to3nat 4tono 4tony to2ra to3rie tor5iz tos2 5tour 4tout to3war 4t1p 1tra tra3b tra5ch traci4 trac4it trac4te tras4 tra5ven trav5es5 tre5f tre4m trem5i 5tria tri5ces 5tricia 4trics 2trim tri4v tro5mi tron5i 4trony tro5phe tro3sp tro3v tru5i trus4 4t1s2 t4sc tsh4 t4sw 4t3t2 t4tes t5to ttu4 1tu tu1a tu3ar tu4bi tud2 4tue 4tuf4 5tu3i 3tum tu4nis 2t3up. 3ture 5turi tur3is tur5o tu5ry 3tus 4tv tw4 4t1wa twis4 4two 1ty 4tya 2tyl type3 ty5ph 4tz tz4e 4uab uac4 ua5na uan4i uar5ant uar2d uar3i uar3t u1at uav4 ub4e u4bel u3ber u4bero u1b4i u4b5ing u3ble. u3ca uci4b uc4it ucle3 u3cr u3cu u4cy ud5d ud3er ud5est udev4 u1dic ud3ied ud3ies ud5is u5dit u4don ud4si u4du u4ene uens4 uen4te uer4il 3ufa u3fl ugh3en ug5in 2ui2 uil5iz ui4n u1ing uir4m uita4 uiv3 uiv4er. u5j 4uk u1la ula5b u5lati ulch4 5ulche ul3der ul4e u1len ul4gi ul2i u5lia ul3ing ul5ish ul4lar ul4li4b ul4lis 4ul3m u1l4o 4uls uls5es ul1ti ultra3 4ultu u3lu ul5ul ul5v um5ab um4bi um4bly u1mi u4m3ing umor5o um2p unat4 u2ne un4er u1ni un4im u2nin un5ish uni3v un3s4 un4sw unt3ab un4ter. un4tes unu4 un5y un5z u4ors u5os u1ou u1pe uper5s u5pia up3ing u3pl up3p upport5 upt5ib uptu4 u1ra 4ura. u4rag u4ras ur4be urc4 ur1d ure5at ur4fer ur4fr u3rif uri4fic ur1in u3rio u1rit ur3iz ur2l url5ing. ur4no uros4 ur4pe ur4pi urs5er ur5tes ur3the urti4 ur4tie u3ru 2us u5sad u5san us4ap usc2 us3ci use5a u5sia u3sic us4lin us1p us5sl us5tere us1tr u2su usur4 uta4b u3tat 4ute. 4utel 4uten uten4i 4u1t2i uti5liz u3tine ut3ing ution5a u4tis 5u5tiz u4t1l ut5of uto5g uto5matic u5ton u4tou uts4 u3u uu4m u1v2 uxu3 uz4e 1va 5va. 2v1a4b vac5il vac3u vag4 va4ge va5lie val5o val1u va5mo va5niz va5pi var5ied 3vat 4ve. 4ved veg3 v3el. vel3li ve4lo v4ely ven3om v5enue v4erd 5vere. v4erel v3eren ver5enc v4eres ver3ie vermi4n 3verse ver3th v4e2s 4ves. ves4te ve4te vet3er ve4ty vi5ali 5vian 5vide. 5vided 4v3iden 5vides 5vidi v3if vi5gn vik4 2vil 5vilit v3i3liz v1in 4vi4na v2inc vin5d 4ving vio3l v3io4r vi1ou vi4p vi5ro vis3it vi3so vi3su 4viti vit3r 4vity 3viv 5vo. voi4 3vok vo4la v5ole 5volt 3volv vom5i vor5ab vori4 vo4ry vo4ta 4votee 4vv4 v4y w5abl 2wac wa5ger wag5o wait5 w5al. wam4 war4t was4t wa1te wa5ver w1b wea5rie weath3 wed4n weet3 wee5v wel4l w1er west3 w3ev whi4 wi2 wil2 will5in win4de win4g wir4 3wise with3 wiz5 w4k wl4es wl3in w4no 1wo2 wom1 wo5ven w5p wra4 wri4 writa4 w3sh ws4l ws4pe w5s4t 4wt wy4 x1a xac5e x4ago xam3 x4ap xas5 x3c2 x1e xe4cuto x2ed xer4i xe5ro x1h xhi2 xhil5 xhu4 x3i xi5a xi5c xi5di x4ime xi5miz x3o x4ob x3p xpan4d xpecto5 xpe3d x1t2 x3ti x1u xu3a xx4 y5ac 3yar4 y5at y1b y1c y2ce yc5er y3ch ych4e ycom4 ycot4 y1d y5ee y1er y4erf yes4 ye4t y5gi 4y3h y1i y3la ylla5bl y3lo y5lu ymbol5 yme4 ympa3 yn3chr yn5d yn5g yn5ic 5ynx y1o4 yo5d y4o5g yom4 yo5net y4ons y4os y4ped yper5 yp3i y3po y4poc yp2ta y5pu yra5m yr5ia y3ro yr4r ys4c y3s2e ys3ica ys3io 3ysis y4so yss4 ys1t ys3ta ysur4 y3thin yt3ic y1w za1 z5a2b zar2 4zb 2ze ze4n ze4p z1er ze3ro zet4 2z1i z4il z4is 5zl 4zm 1zo zo4m zo5ol zte4 4z1z2 z4zy } \hyphenation{ % Do NOT make any alterations to this list! --- DEK as-so-ciate as-so-ciates dec-li-na-tion oblig-a-tory phil-an-thropic present presents project projects reci-procity re-cog-ni-zance ref-or-ma-tion ret-ri-bu-tion ta-ble } 1.1 modperl-docs/tmpl/custom/html/ad Index: ad =================================================================== <div class='ad'> <b>Did you know?</b><br> The <a href="http://www.modperl.com/"><B>Writing Apache Modules with Perl and C</B></a> book can be purchased online from <a href="http://www.ora.com/catalog/wrapmod/">O'Reilly </a> and <a href="http://www.amazon.com/exec/obidos/ASIN/156592567X/writinapachemodu">Amazon.com</a>. </div> 1.1 modperl-docs/tmpl/custom/html/head Index: head =================================================================== [%# # head: standard header for HTML pages # ARGS: # title # page title -%] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>[% doc.meta.title %]</title> [% INCLUDE headers -%] </head> <body> <a name="top"></a> 1.1 modperl-docs/tmpl/custom/html/headers Index: headers =================================================================== <meta name="Author" content="Stas Bekman"> <meta name="Description" content="All Apache/Perl related information: Hints, Guidelines, Scenarios and Troubleshottings"> <meta name="keywords" content="mod_perl modperl perl cgi apache webserver speed fast guide mod_perl apache guide help info faq mod_perl installation cgi troubleshooting help no sex speedup free open source OSS mod_perl apache guide"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="Classification" content="information"> <link href="[% doc.dir.abs_doc_root %]/style.css" rel=stylesheet type="text/css" title="refstyle"> 1.1 modperl-docs/tmpl/custom/html/index Index: index =================================================================== [% PROCESS splash/config; splash.images = "$doc.dir.abs_doc_root/images/splash"; splash.fg = 'mauve'; splash.bg = 'lilac'; -%] [% INCLUDE head paget = doc.meta.title title = "mod_perl: $paget" content = '' -%] <div class='content'> [% INCLUDE index_body %] <br> [% INCLUDE tail -%] </div> <div class='leftcont'> [% INCLUDE menu_top_level nav=doc.nav; %] <br> [% INCLUDE ad -%] </div> </body></html> 1.1 modperl-docs/tmpl/custom/html/index_body Index: index_body =================================================================== [% INCLUDE navbar_global nav=doc.nav; INCLUDE title; IF doc.body.top; "<p>${doc.body.top}</p>"; END; IF doc.meta.abstract; "<p>${doc.meta.abstract}</p>"; END; PROCESS index_toc toc=doc.toc; IF doc.body.bot; "<p>${doc.body.bot}</p>"; END; %] 1.1 modperl-docs/tmpl/custom/html/index_toc Index: index_toc =================================================================== [% # # expected args: # toc - an array with keys: link, title, abstract, subs # (subs is optional and includes a similar array) %] [% numbers = ['I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X'] %] [% IF toc.size %] <a name="toc"></a> <h3>Table of Contents</h3> <div class="toc"> [% IF toc.0.group_title.defined; SET counter = 0; FOREACH group = toc; "<h3>Part ${numbers.$counter}: ${group.group_title}</h3>"; INCLUDE tocsection subs=group.subs; counter = counter + 1; END; ELSE; INCLUDE tocsection subs=toc; END; %] </div> [% END %] 1.1 modperl-docs/tmpl/custom/html/link Index: link =================================================================== [% # creates links correctly (if the link starts with foo:// the # prefix won't be appended) # expects to be set: # prefix - dir to prefix # link - link as defined in the docset # IF link.search('^[^:]+://'); return = link; ELSE; IF prefix; return = "$prefix/$link"; ELSE; return = link; END; END; -%] [%- return -%] 1.1 modperl-docs/tmpl/custom/html/menu_top_level Index: menu_top_level =================================================================== [% # top level menu # expects to be set: # nav - cache navigator object # rel_doc_root - relative docs path (only for chapters!) -%] [% # collect the top level data # first go up to the absolute root l = nav; # remember last valid node p = nav.up; WHILE p; l = p; p = p.up; END; p = l; # last valid node IF p.parent_rel_path.defined; prefix = p.parent_rel_path; ELSE; prefix = "."; END; IF rel_doc_root.defined; prefix = "$prefix/$rel_doc_root"; END; # walk through the top level nodes count = 0; selected = 0; current = p; buttons = []; p = p.first; WHILE p; count = count + 1; link = INCLUDE link prefix=prefix link=p.meta.link; buttons.push({link => link, text => p.meta.title}); IF p.id == current.id; selected = count; END; p = p.next; # next node END; -%] <div class='logo'> <a href="http://perl.apache.org/"><img src="[% doc.dir.abs_doc_root %]/images/mod_perl2.jpg" border=0 alt="mod_perl icon" height=59 width=150></a><br> </div> <br> [% INCLUDE splash/domm_pulldown select = selected width = "5%" pad = 0 border = 0 align = 'left' %] 1.1 modperl-docs/tmpl/custom/html/navbar_global Index: navbar_global =================================================================== [% # super-docset navigation bar # expects to be set # nav - cache navigator object # rel_doc_root - relative docs path (only for chapters!) %] [% IF nav -%] [% # prepare the sects to show where are we relative # to the absolute root parents = []; p = nav.up; nav_not_empty = 0; WHILE p; parents.unshift(p); p = p.up; nav_not_empty = 1; END; sects = []; FOREACH p = parents; SET path = []; IF p.parent_rel_path.defined; # top level has no rel_path path.push(p.parent_rel_path); END; IF rel_doc_root.defined; path.push(rel_doc_root); END; nav_not_empty = 1; link = path.join("/"); sects.push({link => "$link/index.html", text => p.index_node.title}); END; # a page has index as its parent, so we push it here IF rel_doc_root.defined; nav_not_empty = 1; sects.push({link => "$rel_doc_root/index.html", text => nav.index_node.title}); END; -%] [% IF nav_not_empty == 1 %] <div class='navbarglobal'> [% WRAPPER splash/domm_button width = "100%" align = 'left' col = splash.style.select.col.fore -%][% FOREACH sec = sects -%] <a href="[% sec.link %]"><b>[% sec.text %]</b></a> / [% END -%][% END -%] </div> [% END %][% END %] 1.1 modperl-docs/tmpl/custom/html/navbar_local Index: navbar_local =================================================================== [% # '<=prev | up | next=>' chapters navigation bar # expects to be set # nav - cache navigator object # rel_doc_root - relative docs path %] [% prev = nav.prev; next = nav.next; buttons = []; IF prev; link = INCLUDE link prefix=rel_doc_root link=prev.meta.link; left = "<img src='/modperl-site-domm/images/left.gif' ALT='prev' border=0>"; buttons.push({link => link, text => "${prev.meta.title}" prelink => "<td align='right' width='40%'><div class='navbarlocaltext'>", postlink => "</div></td>", }); buttons.push({link => link, text => "$left" prelink => "<td align='right' width='3%'>", postlink => "</td>", }); ELSE; buttons.push({link => "", text => " " prelink => "<td width='43%'>", postlink => "</td>", }); END; buttons.push({link => "$rel_doc_root/index.html", text => "<img src='/modperl-site-domm/images/up.png' ALT='up' border=0>" postlink => "</td>", prelink => "<td align='center' valign='top' width='3%'>", }); IF next; link = INCLUDE link prefix=rel_doc_root link=next.meta.link; right="<img src='/modperl-site-domm/images/right.gif' ALT='next' border=0>"; buttons.push({link => link, text => "$right" postlink => "</td>", prelink => "<td align='left' width='3%'>", }); buttons.push({link => link, text => "${next.meta.title}" postlink => "</div></td>", prelink => "<td align='left' width='40%'><div class='navbarlocaltext'>", }); ELSE; buttons.push({link => "", text => " " prelink => "<td width='43%'>", postlink => "</td>", }); END; %] <div class='navbarlocal'> <table border=0 cellspacing=1 cellpadding=0 width=100%> <tr> [% INCLUDE splash/domm_menu %] </tr></table> </div> 1.1 modperl-docs/tmpl/custom/html/navbar_local_alt Index: navbar_local_alt =================================================================== [% # '<=prev | up | next=>' chapters navigation bar # expects to be set # nav - cache navigator object # rel_doc_root - relative docs path %] [% prev = nav.prev; next = nav.next; buttons = []; IF prev; link = INCLUDE link prefix=rel_doc_root link=prev.meta.link; buttons.push({link => link, text => "${prev.meta.title}", prelink => "<< ", postlink => " | ", }); END; buttons.push({link => "$rel_doc_root/index.html", text => 'Up' }); IF next; link = INCLUDE link prefix=rel_doc_root link=next.meta.link; buttons.push({link => link, text => "${next.meta.title}" postlink => " >> ", prelink => " | ", }); END; %] <div class='navbarlocal'> <table border=0> <tr><td align='right' valign='top'>Source and Binary mod_perl distributions <img src='[% doc.dir.abs_doc_root %]/images/left.gif' ALT='prev'></td> <td align='center' valign='top'><img src='[% doc.dir.abs_doc_root %]/images/up.png' ALT='up'></td> <td align='left' valign='top'><img src='[% doc.dir.abs_doc_root %]/images/right.gif' ALT='next'> Stable Release Download</td> </tr></table> [% INCLUDE splash/domm_menu %] </div> 1.1 modperl-docs/tmpl/custom/html/page Index: page =================================================================== [% PROCESS splash/config; splash.images = "$doc.dir.abs_doc_root/images/splash"; splash.fg = 'mauve'; splash.bg = 'lilac'; -%] [% INCLUDE head paget = doc.meta.title title = "mod_perl: $paget" content = '' -%] <div class='content'> <div class='cbody'> [% INCLUDE page_body %] </div> <br> [% INCLUDE tail -%] </div> <div class='leftcont'> [% INCLUDE menu_top_level nav=doc.nav rel_doc_root=doc.dir.rel_doc_root; %] <br> [% INCLUDE ad -%] </div> </body></html> 1.1 modperl-docs/tmpl/custom/html/page_body Index: page_body =================================================================== [% INCLUDE navbar_global nav=doc.nav rel_doc_root=doc.dir.rel_doc_root; INCLUDE title; INCLUDE navbar_local nav=doc.nav rel_doc_root=doc.dir.rel_doc_root; INCLUDE toc toc=doc.toc; # prepare section sub-menus buttons = [ { link => '#top', text => 'TOP'}, ]; menu = INCLUDE splash/domm_menu size=-1; # render the content FOREACH sec = doc.body; sec; menu; END; INCLUDE navbar_local nav=doc.nav rel_doc_root=doc.dir.rel_doc_root; %] 1.1 modperl-docs/tmpl/custom/html/tail Index: tail =================================================================== <hr size=1 noshade> <center> <table border=0> <tr><td> <a href="http://perl.apache.org/"><img src="[% doc.dir.abs_doc_root %]/images/mod_perl.gif" alt="Mod Perl Icon" height=30 width=90></a> </td><td> <a href="http://validator.w3.org/check/referer"><img border="0" src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!" height="31" width="88"></a> </td><td> <a href="http://jigsaw.w3.org/css-validator/"><img style="border:0;width:88px;height:31px" src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!"></a> </td><td> [% PROCESS splash/ttpower %] </td></tr> <tr><td colspan=4 align=right> <font size=-2>Use of the Camel for Perl is a trademark of <a href="http://www.ora.com">O'Reilly & Associates</a>, and is used by permission. Last Modified: [% doc.last_modified %]</font> </td></tr> </table></center> 1.1 modperl-docs/tmpl/custom/html/title Index: title =================================================================== [% IF doc.meta.title.defined %]<h1>[% doc.meta.title %]</h1>[% END %] 1.1 modperl-docs/tmpl/custom/html/toc Index: toc =================================================================== [% # # expected args: # toc - an array with keys: link, title, abstract, subs # (subs is optional and includes a similar array) %] [% IF toc.size %] <a name="toc"></a> <table border=0 width=100%> <tr><th colspan=2><h3>Table of Contents</h3></th></tr> <tr><td valign='top'><div class='toc'> [% INCLUDE tocsection subs=toc %] </div></td> <td valign='top'> <div class='download'>Download:<br><br> <img src='[% doc.dir.abs_doc_root %]/images/pdf.gif' ALT='PDF'> (123 kB)<br> <br> <img src='[% doc.dir.abs_doc_root %]/images/page.gif' ALT='SRC'> (12 kB)<br> </div></td></tr></table> [% END %] 1.1 modperl-docs/tmpl/custom/html/tocsection Index: tocsection =================================================================== [% # render one level of toc and call recursively itself if there are # nested levels. # expected args: # subs - an array with keys indentical to 'toc' from above. %] <ul> [% FOREACH sec = subs %] <li><a href="[% sec.link %]">[% sec.title %]</a> [% sec.abstract %] </li> [% IF sec.subs %] [% PROCESS tocsection subs=sec.subs %] [% END %] [% END %] </ul> 1.1 modperl-docs/tmpl/custom/ps/body Index: body =================================================================== <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <h1 align=center> [% doc.meta.title %] </h1> <hr class=PAGE-BREAK> [% FOREACH sec = doc.body; sec; END; %] <div align="right">;o)</div> 1.1 modperl-docs/tmpl/custom/ps/head Index: head =================================================================== [%# # header: standard header for HTML pages # ARGS: # title # page title -%] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <html> <head> <title>[% doc.meta.title %]</title> </head> <body> <a name="top"></a> 1.1 modperl-docs/tmpl/custom/ps/index Index: index =================================================================== [% INCLUDE head paget = doc.meta.title title = "mod_perl: $paget" %] <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <div align=center><font size="7"><b>[% doc.meta.title %]</b></font></div> <p> </p> <p> </p> <table align=center width=60%> <tr> <td> [% doc.meta.abstract %] </td> </tr> </table> [% INCLUDE tail %] 1.1 modperl-docs/tmpl/custom/ps/page Index: page =================================================================== [% INCLUDE head paget = doc.meta.title title = "mod_perl: $paget" %] [% INCLUDE body %] [% INCLUDE tail %] 1.1 modperl-docs/tmpl/custom/ps/tail Index: tail =================================================================== </body> </html> <hr class=PAGE-BREAK> 1.1 modperl-docs/tmpl/std/html/cell Index: cell =================================================================== [%# html/cell: an empty and orphaned HTML table cell, <td> . . . </td> # ARGS: # col # background colour (default: none) # align # horizontal alignment (default: none) # colspan # span multiple columns (defualt: none) # content # box content -%] <td [%- IF width %] width="[% width %]"[% END %] [%- IF col %] bgcolor="[% col %]"[% END %] [%- IF colspan %] colspan="[% colspan %]"[% END %] [%- IF align %] align="[% align %]"[% END %] [%- IF valign %] valign="[% valign %]"[% END %]> [%- content -%] </td> 1.1 modperl-docs/tmpl/std/html/pod2html Index: pod2html =================================================================== [% USE pod; pom = pod.parse_text("\n$content"); UNLESS pom; " ! Pod error: $pod.error\n" | stderr; RETURN; END; FOREACH w = pod.warnings; " ! Pod warning: $w\n" | stderr; END; VIEW v prefix='pod/html/'; BLOCK list; view.print(i) FOREACH i = item; END; END; VIEW vq base=v prefix='pod/html/quote_'; END; PROCESS toc1; v.print(pom); -%] [% BLOCK toc1 %] <h3>Table of Contents</h3> <div class="toc"> <ul> [% FOREACH sec = pom.head1; title = vq.print(sec.title) or sec.title; NEXT IF title == 'NAME'; %] <li><a href="#[% PROCESS pod/html/a_name -%]">[% title -%]</a> <ul> [% FOREACH sub = sec.head2; title = vq.print(sub.title) or sub.title; %] <li><a href="#[% PROCESS pod/html/a_name -%]">[% title -%]</a> [% END %] </ul> [% END %] </ul> [% #doc.toc %] </div> [% END %] 1.1 modperl-docs/tmpl/std/html/rgb Index: rgb =================================================================== [%# html/rgb: define 'rgb' containing RGB triples for various colours -%] [% rgb = { # the mono crowd black => '#000000' grey25 => '#404040' grey50 => '#808080' grey75 => '#c0c0c0' white => '#ffffff' red => '#ff0000' red25 => '#400000' red50 => '#800000' red75 => '#c00000' green => '#00ff00' green25 => '#004000' green50 => '#008000' green75 => '#00c000' blue => '#0000ff' blue25 => '#000040' blue50 => '#000080' blue75 => '#0000c0' # v0.01 cols follow # reds blood => '#800000' scarlet => '#c04040' rose => '#f08080' orange => '#fe7202' # greens leaf => '#006400' bud => '#66aa66' mint => '#aaffaa' # blues navy => '#202080' marine => '#0066cc' aqua => '#3399cc' sky => '#66ccff' # lavender blues purple => '#404080' mauve => '#6666cc' lilac => '#9797ff' } # sets of dark/mid/light colours rgb.shade.grey = { dark => rgb.grey25, mid => rgb.grey50, light => rgb.grey75, } rgb.shade.red = { dark => rgb.red25, mid => rgb.red50, light => rgb.red75, } rgb.shade.green = { dark => rgb.green25, mid => rgb.green50, light => rgb.green75, } rgb.shade.blue = { dark => rgb.blue25, mid => rgb.blue50, light => rgb.blue75, } rgb.shade.lavender = { dark => rgb.purple, mid => rgb.mauve, light => rgb.lilac, } -%] 1.1 modperl-docs/tmpl/std/html/row Index: row =================================================================== [%# row: an empty and orphaned HTML table row, <tr> . . . </tr> # ARGS: # col # background colour (default: none) # valign # vertical alignment (default: none) # align # horizontal alignment (default: none) # rowspan # span multiple rows (default: none) # content # box content -%] <tr [%- IF col %] bgcolor="[% col %]"[% END %] [%- IF rowspan %] rowspan="[% rowspan %]"[% END %] [%- IF align %] align="[% align %]"[% END %] [%- IF valign %] valign="[% valign %]"[% END %]> [%- content -%] </tr> 1.1 modperl-docs/tmpl/std/html/table Index: table =================================================================== [%# table: an empty HTML table <table> . . . </table> # ARGS: # border # border width (default: 0) # col # background colour (default: none) # width # width of box (default: none, grow to fit content) # pad # cellpadding (default: none) # space # cellspacing (default: none) # content # box content -%] <table border="[% border or 0 %]" [%- IF col %] bgcolor="[% col %]"[% END %] [%- IF width %] width="[% width %]"[% END %] [%- IF pad.defined %] cellpadding="[% pad %]"[% END %] [%- IF space.defined %] cellspacing="[% space %]"[% END %]> [%- content -%] </table> 1.1 modperl-docs/tmpl/std/misc/author Index: author =================================================================== =head1 AUTHOR [% author.name %] E<lt>[% author.email %]E<gt> [% IF author.home %] L<[% author.home %]|[% author.home %]> [% END %] [% "\n${page.authadd}" IF page.authadd %] 1.1 modperl-docs/tmpl/std/misc/contribs Index: contribs =================================================================== =head1 CONTRIBUTORS Many people have contributed ideas, inspiration, fixes and features to the Template Toolkit. Their efforts continue to be very much appreciated. Please let me know if you think anyone is missing from this list. Chuck Adams <[EMAIL PROTECTED]> Thierry-Michel Barral <[EMAIL PROTECTED]> Craig Barratt <[EMAIL PROTECTED]> Stas Beckman <[EMAIL PROTECTED]> Neil Bowers <[EMAIL PROTECTED]> Leon Brocard <[EMAIL PROTECTED]> Lyle Brooks <[EMAIL PROTECTED]> Piers Cawley <[EMAIL PROTECTED]> Eric Cholet <[EMAIL PROTECTED]> Dave Cross <[EMAIL PROTECTED]> Chris Dean <[EMAIL PROTECTED]> Francois Desarmenien <[EMAIL PROTECTED]> Horst Dumcke <[EMAIL PROTECTED]> Michael Fowler <[EMAIL PROTECTED]> Axel Gerstmair <[EMAIL PROTECTED]> Perrin Harkins <[EMAIL PROTECTED]> Colin Johnson <[EMAIL PROTECTED]> Vivek Khera <khera@kciLink.com> Rafael Kitover <[EMAIL PROTECTED]> Hans von Lengerke <[EMAIL PROTECTED]> Jonas Liljegren <[EMAIL PROTECTED]> Paul Makepeace <[EMAIL PROTECTED]> Simon Matthews <[EMAIL PROTECTED]> Robert McArthur <[EMAIL PROTECTED]> Craig McLane <[EMAIL PROTECTED]> Leslie Michael Orchard <[EMAIL PROTECTED]> Eugene Miretskiy <[EMAIL PROTECTED]> Chris Nandor <[EMAIL PROTECTED]> Martin Portman <[EMAIL PROTECTED]> Randal L. Schwartz <merlyn@stonehenge.com> Paul Sharpe <[EMAIL PROTECTED]> Doug Steinwand <[EMAIL PROTECTED]> Michael Stevens <[EMAIL PROTECTED]> Drew Taylor <[EMAIL PROTECTED]> Swen Thuemmler <[EMAIL PROTECTED]> Richard Tietjen <[EMAIL PROTECTED]> Jim Vaughan <[EMAIL PROTECTED]> Chris Winters <[EMAIL PROTECTED]> 1.1 modperl-docs/tmpl/std/misc/copy Index: copy =================================================================== Copyright (C) 1996-2001 Andy Wardley. All Rights Reserved. Copyright (C) 1998-2001 Canon Research Centre Europe Ltd. 1.1 modperl-docs/tmpl/std/misc/copymid Index: copymid =================================================================== Copyright (C) 1996-2001 Andy Wardley. All Rights Reserved Copyright (C) 1998-2001 Canon Research Centre Europe Ltd. This is free software; you can redistribute it and/or modify it under the same terms as Perl itself. 1.1 modperl-docs/tmpl/std/misc/copyright Index: copyright =================================================================== =head1 COPYRIGHT [% IF page.author == 'abw' or ! page.copyright; PROCESS misc/copy | indent(2); ELSIF page.copyright.search('^\d+$') and author.name %] Copyright (C) [% page.copyright %] [% author.name %] E<lt>[% author.email %]E<gt> [%- ELSE; page.copyright; END %] [% "\n${page.copyadd}\n" IF page.copyadd -%] This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. 1.1 modperl-docs/tmpl/std/misc/exceptions Index: exceptions =================================================================== [% TAGS star %] Exceptions can be raised in a template using the THROW directive, [% THROW user.login 'no user id: please login' %] or by calling the throw() method on the current Template::Context object, $context->throw('user.passwd', 'Incorrect Password'); $context->throw('Incorrect Password'); # type 'undef' or from Perl code by calling die() with a Template::Exception object, die Template::Exception->new('user.denied', 'Invalid User ID'); or by simply calling die() with an error string. This is automagically caught and converted to an exception of 'undef' type which can then be handled in the usual way. die "I'm sorry Dave, I can't do that"; 1.1 modperl-docs/tmpl/std/misc/filters Index: filters =================================================================== [% TAGS [* *] %] =head2 format(format) The 'format' filter takes a format string as a parameter (as per printf()) and formats each line of text accordingly. [% FILTER format('<!-- %-40s -->') %] This is a block of text filtered through the above format. [% END %] output: <!-- This is a block of text filtered --> <!-- through the above format. --> =head2 upper Folds the input to UPPER CASE. [% "hello world" | FILTER upper %] output: HELLO WORLD =head2 lower Folds the input to lower case. [% "Hello World" | FILTER lower %] output: hello world =head2 trim Trims any leading or trailing whitespace from the input text. Particularly useful in conjunction with INCLUDE, PROCESS, etc., having the same effect as the TRIM configuration option. [% INCLUDE myfile | trim %] =head2 collapse Collapse any whitespace sequences in the input text into a single space. Leading and trailing whitespace (which would be reduced to a single space) is removed, as per trim. [% FILTER collapse %] The cat sat on the mat [% END %] output: The cat sat on the mat =head2 html Converts the characters 'E<lt>', 'E<gt>' and '&' to '<', '>' and '&', respectively, protecting them from being interpreted as representing HTML tags or entities. [% FILTER html %] Binary "<=>" returns -1, 0, or 1 depending on... [% END %] output: Binary "<=>" returns -1, 0, or 1 depending on... =head2 html_para This filter formats a block of text into HTML paragraphs. A sequence of two or more newlines is used as the delimiter for paragraphs which are then wrapped in HTML E<lt>pE<gt>...E<lt>/pE<gt> tags. [% FILTER html_para %] The cat sat on the mat. Mary had a little lamb. [% END %] output: <p> The cat sat on the mat. </p> <p> Mary had a little lamb. </p> =head2 html_break Similar to the html_para filter described above, but uses the HTML tag sequence E<lt>brE<gt>E<lt>brE<gt> to join paragraphs. [% FILTER html_break %] The cat sat on the mat. Mary had a little lamb. [% END %] output: The cat sat on the mat. <br> <br> Mary had a little lamb. =head2 uri This filter URI escapes the input text, converting any characters outside of the permitted URI character set (as defined by RFC 2396) into a C<%nn> hex escape. [% 'my file.html' | uri %] output: my%20file.html Note that URI escaping isn't always enough when generating hyperlinks in an HTML document. The C<&> character, for example, is valid in a URI and will not be escaped by the URI filter. In this case you should also filter the text through the 'html' filter. <a href="[% filename | uri | html %]">click here</a> =head2 indent(pad) Indents the text block by a fixed pad string or width. The 'pad' argument can be specified as a string, or as a numerical value to indicate a pad width (spaces). Defaults to 4 spaces if unspecified. [% FILTER indent('ME> ') %] blah blah blah cabbages, rhubard, onions [% END %] output: ME> blah blah blah ME> cabbages, rhubard, onions =head2 truncate(length) Truncates the text block to the length specified, or a default length of 32. Truncated text will be terminated with '...' (i.e. the '...' falls inside the required length, rather than appending to it). [% FILTER truncate(21) %] I have much to say on this matter that has previously been said on more than one occasion. [% END %] output: I have much to say... =head2 repeat(iterations) Repeats the text block for as many iterations as are specified (default: 1). [% FILTER repeat(3) %] We want more beer and we want more beer, [% END %] We are the more beer wanters! output: We want more beer and we want more beer, We want more beer and we want more beer, We want more beer and we want more beer, We are the more beer wanters! =head2 remove(string) Searches the input text for any occurrences of the specified string and removes them. A Perl regular expression may be specified as the search string. [% "The cat sat on the mat" FILTER remove('\s+') %] output: Thecatsatonthemat =head2 replace(search, replace) Similar to the remove filter described above, but taking a second parameter which is used as a replacement string for instances of the search string. [% "The cat sat on the mat" | replace('\s+', '_') %] output: The_cat_sat_on_the_mat =head2 redirect(file) The 'redirect' filter redirects the output of the block into a separate file, specified relative to the OUTPUT_PATH configuration item. [% FOREACH user = myorg.userlist %] [% FILTER redirect("users/${user.id}.html") %] [% INCLUDE userinfo %] [% END %] [% END %] or more succinctly, using side-effect notation: [% INCLUDE userinfo FILTER redirect("users/${user.id}.html") FOREACH user = myorg.userlist %] A 'file' exception will be thrown if the OUTPUT_PATH option is undefined. =head2 eval(template_text) The 'eval' filter evaluates the block as template text, processing any directives embedded within it. This allows template variables to contain template fragments, or for some method to be provided for returning template fragments from an external source such as a database, which can then be processed in the template as required. my $vars = { fragment => "The cat sat on the [% place %]", }; $template->process($file, $vars); The following example: [% fragment | eval %] is therefore equivalent to The cat sat on the [% place %] The 'evaltt' filter is provided as an alias for 'eval'. =head2 perl(perlcode) The 'perl' filter evaluates the block as Perl code. The EVAL_PERL option must be set to a true value or a 'perl' exception will be thrown. [% my_perl_code | perl %] In most cases, the [% PERL %] ... [% END %] block should suffice for evaluating Perl code, given that template directives are processed before being evaluate as Perl. Thus, the previous example could have been written in the more verbose form: [% PERL %] [% my_perl_code %] [% END %] as well as [% FILTER perl %] [% my_perl_code %] [% END %] The 'evalperl' filter is provided as an alias for 'perl' for backwards compatibility. =head2 stdout(binmode) The stdout filter prints the output generated by the enclosing block to STDOUT. If binmode is set, binary mode on STDOUT is turned on (see the binmode perl function. The stdout filter can be used to force binmode on STDOUT, or also inside redirect, null or stderr blocks to make sure that particular output goes to stdout. See the null filter below for an example. =head2 stderr The stderr filter prints the output generated by the enclosing block to STDERR. =head2 null The null filter prints nothing. This is useful for plugins whose methods return values that you don't want to appear in the output. Rather than assigning every plugin method call to a dummy variable to silence it, you can wrap the block in a null filter: [% FILTER null; USE im = GD.Image(100,100); black = im.colorAllocate(0, 0, 0); red = im.colorAllocate(255,0, 0); blue = im.colorAllocate(0, 0, 255); im.arc(50,50,95,75,0,360,blue); im.fill(50,50,red); im.png | stdout(1); END; -%] Notice the use of the stdout filter to ensure that a particular expression generates output to stdout (in this case in binary mode). =head2 latex(outputType) Passes the text block to LaTeX and produces either PDF, DVI or PostScript output. The 'outputType' argument determines the output format and it should be set to one of the strings: "pdf" (default), "dvi", or "ps". The text block should be a complete LaTeX source file. [% FILTER latex("pdf") -%] \documentclass{article} \begin{document} \title{A Sample TT2 \LaTeX\ Source File} \author{Craig Barratt} \maketitle \section{Introduction} This is some text. \end{document} [% END -%] The output will be a PDF file. You should be careful not to prepend or append any extraneous characters or text outside the FILTER block, since this text will wrap the (binary) output of the latex filter. Notice the END directive uses '-%]' for the END_TAG to remove the trailing new line. One example where you might prepend text is in a CGI script where you might include the Content-Type before the latex output, eg: Content-Type: application/pdf [% FILTER latex("pdf") -%] \documentclass{article} \begin{document} ... \end{document} [% END -%] In other cases you might use the redirect filter to put the output into a file, rather than delivering it to stdout. This might be suitable for batch scripts: [% output = FILTER latex("pdf") -%] \documentclass{article} \begin{document} ... \end{document} [% END; output | redirect("document.pdf", 1) -%] (Notice the second argument to redirect to force binary mode.) Note that the latex filter runs one or two external programs, so it isn't very fast. But for modest documents the performance is adequate, even for interactive applications. A error of type 'latex' will be thrown if there is an error reported by latex, pdflatex or dvips. 1.1 modperl-docs/tmpl/std/misc/history Index: history =================================================================== =head1 HISTORY The Template Toolkit began its life as the Text::MetaText module, originally released to CPAN around 1996. This itself was the public manifestation of an earlier template processing system I developed while working at Peritas (now Knowledge Pool - http://www.knowledgepool.com/) Text::MetaText was the prototype - the one we always planned to throw away. It did the job well, showing us what worked and what didn't, what was good and what was bad, and gave us some ideas about what could be done better, given the chance to start again from scratch. Some time late in 1998 I threw away the prototype and started work on the Template Toolkit. By then I was working at Canon Research Centre Europe Ltd. (http://www.cre.canon.co.uk), involved in a general research programme related to web publishing and dynamic content generation. The first alpha release was in June 1999, followed by numerous more alpha and beta releases culminating in 1.00 being released on 2nd December 1999. A month or so later, work had begun on version 2.00. The plan was to get the template language relatively stable in version 1.00 and not worry too much about performance or other internal matters. Then, version 2.00 would follow to improve performance, clean up the architecture and fix anything that, with the benefit of hindsight, we thought could be improved. As it happens, me starting work on version 2.00 coincided with Doug Steinwand sending me his parser variant which compiled templates to Perl code, giving a major performance boost. As well as the speedups, there are a whole host of significant new features in version 2.00, and a greatly improved internal architecture. Apart from a few minor "fixups" the template directives and language have remained the same as in version 1.00 Version 2.00 was available in beta release form in July 2000, just in time for the 4th Perl Conference where version 1.00 was awarded "Best New Perl Module". After another extended beta release period, version 2.00 was released on 1st December 2000. 1.1 modperl-docs/tmpl/std/misc/install Index: install =================================================================== [% TAGS star -%] The latest version of the Template Toolkit can be retrieved from: http://www.cpan.org/modules/by-module/Template/ Fetch and install AppConfig 1.52 if you don't already have it installed. Available from CPAN in: http://www.cpan.org/authors/Andy_Wardley/ The following modules are optional. If you have them installed then you will be able to access them via the appropriate Template Toolkit plugins. If you don't have them and don't want them, then there's no need to install them. They're all available from CPAN if you do. Text::Autoformat 1.03+ DBI 1.14+ (and relevant DBD drivers) GD 1.32+ GD::Text 0.80+ GD::Graph 1.33+ GD::Graph3d 0.55+ Pod::POM 0.1+ XML::Parser 2.23+ XML::DOM 1.27+ (in libxml-enno) XML::RSS 0.9+ XML::XPath 1.00+ To install the Template Toolkit: tar zxf Template-Toolkit-[* tt.version *].tar.gz cd Template-Toolkit-[* tt.version *] perl Makefile.PL make make test make install The Makefile.PL will prompt for additional configuration options, including the installation of optional template libraries, HTML documentation and examples. You can safely answer 'n' to all of these questions for a quick and basic installation. If you're running ActivePerl on a Win32 platform then you can use the Perl Package Manager (PPM) to install the Template Toolkit. Chris Winters maintains a repository of pre-compiled PPM packages which contains the Template Toolkit, AppConfig and others. For further information, see: http://openinteract.sourceforge.net/ 1.1 modperl-docs/tmpl/std/misc/modules Index: modules =================================================================== The following modules comprise the Template Toolkit. Consult the individual documentation for further details. =over 4 =item [% link('Template::Service') %] The Template::Service module handles the template processing lifecycle, adding PRE_PROCESS and POST_PROCESS templates, handling redirection through any defined PROCESS template, and dispatching any ERROR templates to handle uncaught exceptions. The actual processing of these templates is handled by an underlying [% link('Template::Context') %] object. =item [% link('Template::Context') %] The Template::Context module defines a class of objects which each represent a unique run-time environment in which templates are processed. The context maintains references to the stash of variables currently defined ([% link('Template::Stash') %]) and to provider objects for templates ([% link('Template::Provider') %]), filters ([% link('Template::Filters') %]) and plugins ([% link('Template::Plugins') %]). =item [% link('Template::Stash') %] The Template::Stash module defines an object class which is used for storing, retrieving and evaluating variables and their values. =item [% link('Template::Provider') %] The Template::Provider module defines an object class which is used to find, load, parse, compile and then cache template documents. The cache implements a simple fetch($template) method which will accept a wide range of inputs (filename, text ref, GLOB, IO::Handle, etc) and attempt to read the template and call on a [% link('Template::Parser') %] to parse and compile it to a [% link('Template::Document') %] which is then cached. =item [% link('Template::Document') %] Template::Document objects are thin wrappers around the Perl subroutines which have been compiled from source templates by the [% link('Template::Parser') %]. These objects also maintain any metadata values for the template and have references to any BLOCKs defined within the the template. =item [% link('Template::Parser') %] The Template::Parser module defines an object class which implements the template parser and compiler. The template text is first scanned by a Perl regex which extracts the embedded directives and lexes the tokens contained within. A DFA (Deterministic Finite-state Automaton) then iterates through the tokens using the rules and states defined in [% link('Template::Grammar') %] and generates a compiled template document as a Perl subroutine. =item [% link('Template::Grammar') %] The Template::Grammar module defines the rules and state tables for the [% link('Template::Parser') %] DFA. These are generated by the Parse::Yapp module. The Template-Toolkit distribution contains a B<parser> directory which contains further files and information concerning the grammar and compilation thereof. =item [% link('Template::Directive') %] This module implements a number of factory methods which are used by the [% link('Template::Parser') %] to generate Perl code from source templates. =item [% link('Template::Filters') %] This module implements the various FILTER subroutines and provides a simple interface through which filter subs can be retrieved. =item [% link('Template::Plugins') %] This module provides access to the standard Template Toolkit or user defined plugin modules. =item [% link('Template::Plugin') %] Base class for Template::Plugin::* modules. =item [% link('Template::Exception') %] The Template::Exception module defines an exception type for representing error conditions within the Template Toolkit. =item [% link('Template::Iterator') %] The Template::Iterator module defines a data iterator which is used by the FOREACH directive. This may be sub-classed to create more specialised iterators for traversing data sets. =item [% link('Template::Constants') %] Defines various constants used in the Template Toolkit. =item [% link('Template::Config') %] Implements a number of factory methods through which other Template::* modules can be automatically loaded and instantiated. =item [% link('Template::Base') %] A common base class for many Template::* modules. =item [% link('Template::Test') %] Module for testing the Template Toolkit, primarily used by the test scripts in the 't' distribution sub-directory. =back 1.1 modperl-docs/tmpl/std/misc/plugins Index: plugins =================================================================== [% TAGS [* *] %] =head1 TEMPLATE TOOLKIT PLUGINS The following plugin modules are distributed with the Template Toolkit. Some of the plugins interface to external modules (detailed below) which should be downloaded from any CPAN site and installed before using the plugin. =head2 Autoformat The Autoformat plugin is an interface to Damian Conway's Text::Autoformat Perl module which provides advanced text wrapping and formatting. See L<Template::Plugin::Autoformat> and L<Text::Autoformat> for further details. [% USE autoformat(left=10, right=20) %] [% autoformat(mytext) %] # call autoformat sub [% mytext FILTER autoformat %] # or use autoformat filter The Text::Autoformat module is available from CPAN: http://www.cpan.org/modules/by-module/Text/ =head2 CGI The CGI plugin is a wrapper around Lincoln Stein's E<lt>[EMAIL PROTECTED]<gt> CGI.pm module. The plugin is distributed with the Template Toolkit (see L<Template::Plugin::CGI>) and the CGI module itself is distributed with recent versions Perl, or is available from CPAN. [% USE CGI %] [% CGI.param('param_name') %] [% CGI.start_form %] [% CGI.popup_menu( Name => 'color', Values => [ 'Green', 'Brown' ] ) %] [% CGI.end_form %] =head2 Datafile Provides an interface to data stored in a plain text file in a simple delimited format. The first line in the file specifies field names which should be delimiter by any non-word character sequence. Subsequent lines define data using the same delimiter as int he first line. Blank lines and comments (lines starting '#') are ignored. See L<Template::Plugin::Datafile> for further details. /tmp/mydata: # define names for each field id : email : name : tel # here's the data fred : [EMAIL PROTECTED] : Fred Smith : 555-1234 bill : [EMAIL PROTECTED] : Bill White : 555-5678 example: [% USE userlist = datafile('/tmp/mydata') %] [% FOREACH user = userlist %] [% user.name %] ([% user.id %]) [% END %] =head2 Date The Date plugin provides an easy way to generate formatted time and date strings by delegating to the POSIX strftime() routine. See L<Template::Plugin::Date> and L<POSIX> for further details. [% USE date %] [% date.format %] # current time/date File last modified: [% date.format(template.modtime) %] =head2 Directory The Directory plugin provides a simple interface to a directory and the files within it. See L<Template::Plugin::Directory> for further details. [% USE dir = Directory('/tmp') %] [% FOREACH file = dir.files %] # all the plain files in the directory [% END %] [% FOREACH file = dir.dirs %] # all the sub-directories [% END %] =head2 DBI The DBI plugin, developed by Simon Matthews E<lt>[EMAIL PROTECTED]<gt>, brings the full power of Tim Bunce's E<lt>[EMAIL PROTECTED]<gt> database interface module (DBI) to your templates. See L<Template::Plugin::DBI> and L<DBI> for further details. [% USE DBI('dbi:driver:database', 'user', 'pass') %] [% FOREACH user = DBI.query( 'SELECT * FROM users' ) %] [% user.id %] [% user.name %] [% END %] The DBI and relevant DBD modules are available from CPAN: http://www.cpan.org/modules/by-module/DBI/ =head2 Dumper The Dumper plugin provides an interface to the Data::Dumper module. See L<Template::Plugin::Dumper> and L<Data::Dumper> for futher details. [% USE dumper(indent=0, pad="<br>") %] [% dumper.dump(myvar, yourvar) %] =head2 File The File plugin provides a general abstraction for files and can be used to fetch information about specific files within a filesystem. See L<Template::Plugin::File> for further details. [% USE File('/tmp/foo.html') %] [% File.name %] # foo.html [% File.dir %] # /tmp [% File.mtime %] # modification time =head2 Format The Format plugin provides a simple way to format text according to a printf()-like format. See L<Template::Plugin::Format> for further details. [% USE bold = format('<b>%s</b>') %] [% bold('Hello') %] =head2 GD::Image, GD::Polygon, GD::Constants These plugins provide access to the GD graphics library via Lincoln D. Stein's GD.pm interface. These plugins allow PNG, JPEG and other graphical formats to be generated. [% FILTER null; USE im = GD.Image(100,100); # allocate some colors black = im.colorAllocate(0, 0, 0); red = im.colorAllocate(255,0, 0); blue = im.colorAllocate(0, 0, 255); # Draw a blue oval im.arc(50,50,95,75,0,360,blue); # And fill it with red im.fill(50,50,red); # Output image in PNG format im.png | stdout(1); END; -%] See L<Template::Plugin::GD::Image> for further details. =head2 GD::Text, GD::Text::Align, GD::Text::Wrap These plugins provide access to Martien Verbruggen's GD::Text, GD::Text::Align and GD::Text::Wrap modules. These plugins allow the layout, alignment and wrapping of text when drawing text in GD images. [% FILTER null; USE gd = GD.Image(200,400); USE gdc = GD.Constants; black = gd.colorAllocate(0, 0, 0); green = gd.colorAllocate(0, 255, 0); txt = "This is some long text. " | repeat(10); USE wrapbox = GD.Text.Wrap(gd, line_space => 4, color => green, text => txt, ); wrapbox.set_font(gdc.gdMediumBoldFont); wrapbox.set(align => 'center', width => 160); wrapbox.draw(20, 20); gd.png | stdout(1); END; -%] See L<Template::Plugin::GD::Text>, L<Template::Plugin::GD::Text::Align> and L<Template::Plugin::GD::Text::Wrap> for further details. =head2 GD::Graph::lines, GD::Graph::bars, GD::Graph::points, GD::Graph::linespoin ts, GD::Graph::area, GD::Graph::mixed, GD::Graph::pie These plugins provide access to Martien Verbruggen's GD::Graph module that allows graphs, plots and charts to be created. These plugins allow graphs, plots and charts to be generated in PNG, JPEG and other graphical formats. [% FILTER null; data = [ ["1st","2nd","3rd","4th","5th","6th"], [ 4, 2, 3, 4, 3, 3.5] ]; USE my_graph = GD.Graph.pie(250, 200); my_graph.set( title => 'A Pie Chart', label => 'Label', axislabelclr => 'black', pie_height => 36, transparent => 0, ); my_graph.plot(data).png | stdout(1); END; -%] See L<Template::Plugin::GD::Graph::lines>, L<Template::Plugin::GD::Graph::bars>, L<Template::Plugin::GD::Graph::points>, L<Template::Plugin::GD::Graph::linespoints>, L<Template::Plugin::GD::Graph::area>, L<Template::Plugin::GD::Graph::mixed>, L<Template::Plugin::GD::Graph::pie>, and L<GD::Graph>, for more details. =head2 GD::Graph::bars3d, GD::Graph::lines3d, GD::Graph::pie3d These plugins provide access to Jeremy Wadsack's GD::Graph3d module. This allows 3D bar charts and 3D lines plots to be generated. [% FILTER null; data = [ ["1st","2nd","3rd","4th","5th","6th","7th", "8th", "9th"], [ 1, 2, 5, 6, 3, 1.5, 1, 3, 4], ]; USE my_graph = GD.Graph.bars3d(); my_graph.set( x_label => 'X Label', y_label => 'Y label', title => 'A 3d Bar Chart', y_max_value => 8, y_tick_number => 8, y_label_skip => 2, # shadows bar_spacing => 8, shadow_depth => 4, shadowclr => 'dred', transparent => 0, my_graph.plot(data).png | stdout(1); END; -%] See L<Template::Plugin::GD::Graph::lines3d>, L<Template::Plugin::GD::Graph::bars3d>, and L<Template::Plugin::GD::Graph::pie3d> for more details. =head2 HTML The HTML plugin is very new and very basic, implementing a few useful methods for generating HTML. It is likely to be extended in the future or integrated with a larger project to generate HTML elements in a generic way (as discussed recently on the mod_perl mailing list). [% USE HTML %] [% HTML.escape("if (a < b && c > d) ..." %] [% HTML.attributes(border => 1, cellpadding => 2) %] [% HTML.element(table => { border => 1, cellpadding => 2 }) %] See L<Template::Plugin::Iterator> for further details. =head2 Iterator The Iterator plugin provides a way to create a Template::Iterator object to iterate over a data set. An iterator is created automatically by the FOREACH directive and is aliased to the 'loop' variable. This plugin allows an iterator to be explicitly created with a given name, or the default plugin name, 'iterator'. See L<Template::Plugin::Iterator> for further details. [% USE iterator(list, args) %] [% FOREACH item = iterator %] [% '<ul>' IF iterator.first %] <li>[% item %] [% '</ul>' IF iterator.last %] [% END %] =head2 Table The Table plugin allows you to format a list of data items into a virtual table by specifying a fixed number of rows or columns, with an optional overlap. See L<Template::Plugin::Table> for further details. [% USE table(list, rows=10, overlap=1) %] [% FOREACH item = table.col(3) %] [% item %] [% END %] =head2 URL The URL plugin provides a simple way of contructing URLs from a base part and a variable set of parameters. See L<Template::Plugin::URL> for further details. [% USE mycgi = url('/cgi-bin/bar.pl', debug=1) %] [% mycgi %] # ==> /cgi/bin/bar.pl?debug=1 [% mycgi(mode='submit') %] # ==> /cgi/bin/bar.pl?mode=submit&debug=1 =head2 Wrap The Wrap plugin uses the Text::Wrap module by David Muir Sharnoff E<lt>[EMAIL PROTECTED]<gt> (with help from Tim Pierce and many many others) to provide simple paragraph formatting. See L<Template::Plugin::Wrap> and L<Text::Wrap> for further details. [% USE wrap %] [% wrap(mytext, 40, '* ', ' ') %] # use wrap sub [% mytext FILTER wrap(40) -%] # or wrap FILTER The Text::Wrap module is available from CPAN: http://www.cpan.org/modules/by-module/Text/ =head2 XML::DOM The XML::DOM plugin gives access to the XML Document Object Module via Clark Cooper E<lt>[EMAIL PROTECTED]<gt> and Enno Derksen's E<lt>[EMAIL PROTECTED]<gt> XML::DOM module. See L<Template::Plugin::XML::DOM> and L<XML::DOM> for further details. [% USE dom = XML.DOM %] [% doc = dom.parse(filename) %] [% FOREACH node = doc.getElementsByTagName('CODEBASE') %] * [% node.getAttribute('href') %] [% END %] The plugin requires the XML::DOM module, available from CPAN: http://www.cpan.org/modules/by-module/XML/ =head2 XML::XPath The XML::XPath plugin provides an interface to Matt Sergeant's E<lt>[EMAIL PROTECTED]<gt> XML::XPath module. See L<Template::Plugin::XML::XPath> and L<XML::XPath> for further details. [% USE xpath = XML.XPath(xmlfile) %] [% FOREACH page = xpath.findnodes('/html/body/page') %] [% page.getAttribute('title') %] [% END %] The plugin requires the XML::XPath module, available from CPAN: http://www.cpan.org/modules/by-module/XML/ =head2 XML::RSS The XML::RSS plugin is a simple interface to Jonathan Eisenzopf's E<lt>[EMAIL PROTECTED]<gt> XML::RSS module. A RSS (Rich Site Summary) file is typically used to store short news 'headlines' describing different links within a site. This plugin allows you to parse RSS files and format the contents accordingly using templates. See L<Template::Plugin::XML::RSS> and L<XML::RSS> for further details. [% USE news = XML.RSS(filename) %] [% FOREACH item = news.items %] <a href="[% item.link %]">[% item.title %]</a> [% END %] The XML::RSS module is available from CPAN: http://www.cpan.org/modules/by-module/XML/ 1.1 modperl-docs/tmpl/std/misc/projects Index: projects =================================================================== There are a number of other projects related to the Template Toolkit. =over 4 =item OpenInteract OpenInteract is a robust web application framework built to run under Apache and mod_perl using the Template Toolkit as a foundation. http://www.openinteract.org/ =item Apache::Template This is an Apache/mod_perl interface to the Template Toolkit. Available from CPAN in the directory: http://www.cpan.org/modules/by-module/Apache/ =item AxKit::Template AxKit is Matt Sergeant's Apache XML Delivery Toolkit. AxKit::Template provides an interface between AxKit and the Template Toolkit. Available from CPAN in the directory: http://www.cpan.org/modules/by-module/Apache/ =item Slashcode Slashcode is the code which runs Slashdot. Version 2 uses the Template Toolkit for generating the user interface from database driven template. http://slashcode.org/ =back 1.1 modperl-docs/tmpl/std/misc/reserved Index: reserved =================================================================== GET CALL SET DEFAULT INSERT INCLUDE PROCESS WRAPPER IF UNLESS ELSE ELSIF FOR FOREACH WHILE SWITCH CASE USE PLUGIN FILTER MACRO PERL RAWPERL BLOCK META TRY THROW CATCH FINAL NEXT LAST BREAK RETURN STOP CLEAR TO STEP AND OR NOT MOD DIV END 1.1 modperl-docs/tmpl/std/misc/resources Index: resources =================================================================== The Template Toolkit web site contains the latest information, news and other resources. http://www.template-toolkit.org/ A mailing list exists for up-to-date information on the Template Toolkit and for following and contributing to the development process. To subscribe, send an email to [EMAIL PROTECTED] with the message 'subscribe' in the body. You can also use the web interface to subscribe or browse the archives: http://www.template-toolkit.org/mailman/listinfo/templates The F<tpage> and F<ttree> scripts are distributed and installed along with the Template Toolkit. The F<tpage> script simply processes named files or STDIN if unspecified, using a default Template object. The F<ttree> script can be used to process entire directory trees of templates, allowing large content systems such as web sites to be rebuilt from a single command or configuration file. perldoc tpage perldoc ttree The F<Template::Tutorial> document provides an introduction to the Template Toolkit and shows some typical examples of usage. perldoc Template::Tutorial You may also like to consult the paper 'Building and Managing Web Systems with the Template Toolkit' and accompanying slides from the presentation at the 4th Perl Conference. These are available from the Template Toolkit web site: http://www.template-toolkit.org/docs.html 1.1 modperl-docs/tmpl/std/misc/seealso Index: seealso =================================================================== [% IF seealso -%] =head1 SEE ALSO [% FOREACH item = seealso.split(',\s*'); item = item.split('\|'); link = item.1 or item.0 item = item.0 -%]L<[% item %]|[% link %]>[% ', ' UNLESS loop.last -%] [%- END %] [% END -%] 1.1 modperl-docs/tmpl/std/misc/version Index: version =================================================================== =head1 VERSION [% IF page.version -%] [% page.version %], distributed as part of the [% END -%] Template Toolkit version [% tt.version %], released on [% tt.release %]. 1.1 modperl-docs/tmpl/std/misc/warning Index: warning =================================================================== IMPORTANT NOTE This documentation is generated automatically from source templates. Any changes you make here may be lost. The 'docsrc' documentation source bundle is available for download from http://www.template-toolkit.org/docs.html and contains all the source templates, XML files, scripts, etc., from which the documentation for the Template Toolkit is built. 1.1 modperl-docs/tmpl/std/pod/footer Index: footer =================================================================== [% PROCESS misc/author; PROCESS misc/version; PROCESS misc/copyright; PROCESS misc/seealso seealso = page.seealso -%] 1.1 modperl-docs/tmpl/std/pod/header Index: header =================================================================== #============================================================= -*-perl-*- # # [% page.podname %] # # DESCRIPTION [% USE wrap; page.intro | wrap(72, '# ', '# ') %] # # AUTHOR # [% author.name %] <[% author.email %]> # # COPYRIGHT # Copyright (C) 1996-2001 Andy Wardley. All Rights Reserved. # Copyright (C) 1998-2001 Canon Research Centre Europe Ltd. # # This module is free software; you can redistribute it and/or # modify it under the same terms as Perl itself. # # REVISION # [% page.version %] # #======================================================================== 1.1 modperl-docs/tmpl/std/pod/index Index: index =================================================================== =head1 DESCRIPTION [% USE wrap; book.intro | wrap(72) %] =over 4 [% FOREACH page = book.pages -%] =item L<[% page.podname %]|[% page.podname %]> [% page.about | wrap(72) %] [% page.intro | wrap(72) %] [% END %] =back 1.1 modperl-docs/tmpl/std/pod/page Index: page =================================================================== [% author = page.author or 'abw'; author = authors.$author; PROCESS pod/header IF page.standalone; -%] #------------------------------------------------------------------------ [% PROCESS misc/warning | trim | indent('# ') %] #------------------------------------------------------------------------ =head1 NAME [% page.podname %] - [% page.about %] [% content | replace('^\s+', '') | replace('\s+$', '') %] [% PROCESS pod/footer UNLESS page.nofoot %] 1.1 modperl-docs/tmpl/std/pod/html/a_name Index: a_name =================================================================== [% # accepts: title %] [% title.replace('\W+', '_') %] 1.1 modperl-docs/tmpl/std/pod/html/begin Index: begin =================================================================== [% view.print(item.content) IF item.format.search('html') %] 1.1 modperl-docs/tmpl/std/pod/html/for Index: for =================================================================== [% item.text IF item.format.search('html') -%] 1.1 modperl-docs/tmpl/std/pod/html/head1 Index: head1 =================================================================== [% title = view.print(item.title) %] [% title.replace('\W+', '_') %] <a name="[% PROCESS pod/html/a_name %]"> <h1>[% title %]</h1> [% view.print(item.content) %] [ <a href="#toc">TOC</a> ] 1.1 modperl-docs/tmpl/std/pod/html/head2 Index: head2 =================================================================== <h2>[% view.print(item.title) %]</h2> [% view.print(item.content) %] 1.1 modperl-docs/tmpl/std/pod/html/item Index: item =================================================================== [% INCLUDE html/item title = view.print(item.title) content = view.print(item.content) -%] 1.1 modperl-docs/tmpl/std/pod/html/over Index: over =================================================================== [% INCLUDE html/list indent = item.indent content = view.print(item.content) -%] 1.1 modperl-docs/tmpl/std/pod/html/pod Index: pod =================================================================== <!-- Pod to HTML conversion by the Template Toolkit version 2 --> [% view.print(item.content) %] 1.1 modperl-docs/tmpl/std/pod/html/quote_seq_text Index: quote_seq_text =================================================================== [% item | html | tt_quote_tags -%] 1.1 modperl-docs/tmpl/std/pod/html/seq_bold Index: seq_bold =================================================================== <b>[% item %]</b> 1.1 modperl-docs/tmpl/std/pod/html/seq_code Index: seq_code =================================================================== <code>'[% item %]'</code> 1.1 modperl-docs/tmpl/std/pod/html/seq_entity Index: seq_entity =================================================================== &[% item %]; 1.1 modperl-docs/tmpl/std/pod/html/seq_file Index: seq_file =================================================================== <file>[% item %]</file> 1.1 modperl-docs/tmpl/std/pod/html/seq_italic Index: seq_italic =================================================================== <i>[% item %]</i> 1.1 modperl-docs/tmpl/std/pod/html/seq_link Index: seq_link =================================================================== [% items = item.split('\|') link = items.0 text = items.1 or items.0 -%] <a href="[% link %]">[% text %]</a> 1.1 modperl-docs/tmpl/std/pod/html/seq_space Index: seq_space =================================================================== [% item.replace('\s', ' ') %] 1.1 modperl-docs/tmpl/std/pod/html/seq_text Index: seq_text =================================================================== [% item | html -%] 1.1 modperl-docs/tmpl/std/pod/html/text Index: text =================================================================== [% item -%] 1.1 modperl-docs/tmpl/std/pod/html/textblock Index: textblock =================================================================== <p> [% item %] </p> 1.1 modperl-docs/tmpl/std/pod/html/verbatim Index: verbatim =================================================================== <pre>[% item | html %]</pre> 1.1 modperl-docs/tmpl/std/splash/bar Index: bar =================================================================== [% # splash/bar: a bar with rounded corners at the top and/or bottom # # ARGS: content, style, invert # STYLE: col, bgcol, align, width # SET default = splash.style.default ; DEFAULT style = default col = style.col.fore or default.col.fore bgcol = style.col.back or default.col.back align = style.bar.align or default.bar.align width = style.bar.width or default.bar.width ; SET rgbfore = splash.rgb.$col imgback = "$splash.images/$bgcol" imgsize = splash.imgsize imgtype = splash.imgtype up = invert ? 'bottom' : 'top' down = invert ? 'top' : 'bottom' ; -%] <!-- tt2.splash.bar --> <table bgcolor="[% rgbfore %]"[% IF width %] width="[% width %]"[% END %] border="0" cellpadding="0" cellspacing="0"> <tr height="[% imgsize %]" valign="[% up %]"> <td width="[% imgsize %]"><img src="[% imgback %]/[% invert ? 'bl' : 'tl' %].[% imgtype %]" width="[% imgsize %]" height="[% imgsize %]"></td> <td valign="middle"[% IF align %] align="[% align %]"[% END %] [%- IF width %] width="100%"[% END %]> [%- content.length ? content : ' ' -%]</td> <td width="[% imgsize %]" align="right"><img src="[% imgback %]/[% invert ? 'br' : 'tr' %].[% imgtype %]" width="[% imgsize %]" height="[% imgsize %]"></td> </tr> </table> <!-- /tt2.splash.bar --> 1.1 modperl-docs/tmpl/std/splash/box Index: box =================================================================== [% # splash/box: a single panel within a frame # # ARGS: col, bgcol, border # SET default = splash.style.default ; DEFAULT style = default col = style.col.edge or default.col.edge bgcol = style.col.fill or default.col.fill ; WRAPPER splash/frame; WRAPPER splash/panel col=bgcol; content; END; END; %] 1.1 modperl-docs/tmpl/std/splash/breakdown Index: breakdown =================================================================== [% # this is a temporary hack col = { back = 'white' fore = 'marine' select = 'green75' click = 'sky' baron = 'black' baroff = 'aqua' } rgb = { back = splash.rgb.${col.back} fore = splash.rgb.${col.fore} select = splash.rgb.${col.select} click = splash.rgb.${col.click} baron = splash.rgb.${col.baron} } img = { back = "${splash.images}/${col.back}" fore = "${splash.images}/${col.fore}" select = "${splash.images}/${col.select}" size = splash.imgsize type = splash.imgtype } gap = 1; imgsize = 8; # select = 2; -%] <!-- tt2.splash.breakdown --> <table bgcolor="[% rgb.fore %]"[% IF width %] width="[% width %]"[% END %] border="0" cellpadding="0" cellspacing="0"> <tr> <td> <table width="100%" border=0" cellspacing="0" cellpadding="0"> <tr valign="top"> <td width="[% img.size %]" align="left"><img src="[% img.back %]/tl.[% img.type %]" width="[% img.size %]" height="[% img.size %]"></td> <td width="[% img.size %]" align="right"><img src="[% img.back %]/tr.[% img.type %]" width="[% img.size %]" height="[% img.size %]"></td> </tr> </table> </td> </tr> [% items = [ { id => 'foo', text => 'Download' } { id => 'bar', text => 'Quick Start' } { id => 'baz', text => 'Tutorial' } { id => 'baz', text => 'Manual' } { id => 'wiz', text => 'FAQ' } ] %] [% FOREACH item = items -%] [% sel=(select && ((loop.count == select) || (loop.count == (select + 1)))) -%] [% INCLUDE sep col=sel ? col.baron : col.baroff -%] <tr> <td name="item_[% item.id %]" bgcolor="[% loop.count == select ? rgb.select : rgb.fore %]"> <table border="0" cellspacing="0"> <tr> <td> </td> <td> <a href="[% item.id %].html"><font color="white">[% "<b>" IF loop.count == select %]<small>[% item.text %]</small>[% "</b>" IF loop.count == select %]</font></a></td> <td> </td> </tr> </table> </td> </tr> [% END %] [% INCLUDE sep col=(select == items.size) ? col.baron : col.baroff -%] <tr> <td> <table width="100%" border=0" cellspacing="0" cellpadding="0"> <tr valign="top"> <td width="[% img.size %]" align="left"><img src="[% img.back %]/bl.[% img.type %]" width="[% img.size %]" height="[% img.size %]"></td> <td width="[% img.size %]" align="right"><img src="[% img.back %]/br.[% img.type %]" width="[% img.size %]" height="[% img.size %]"></td> </tr> </table> </td> </tr> </table> <!-- /tt2.splash.breakdown --> [%- BLOCK sep; DEFAULT col=col.select; rgbcol = splash.rgb.${col} -%] <tr> <td bgcolor="[% rgbcol %]"><img src="[% splash.images %]/[% col %]/single.[% img.type %]" width="[% gap %]" height="[% gap %]" border=0>---</td> </tr> [%- END %] 1.1 modperl-docs/tmpl/std/splash/button Index: button =================================================================== [% # splash/button: a bar with rounded corners # # ARGS: content, style # STYLE: col, bgcol, align, width # SET default = splash.style.default ; DEFAULT style = default col = style.col.fore or default.col.fore bgcol = style.col.back or default.col.back align = style.button.align or default.button.align ; SET rgbcol = splash.rgb.$col imgbase = "$splash.images/$bgcol" imgsize = splash.imgsize imgtype = splash.imgtype ; -%] <!-- tt2.splash.button --> <table bgcolor="[% rgbcol %]"[% IF width %] width="[% width %]"[% END %] border="0" cellpadding="0" cellspacing="0"> <tr valign="top"> <td width="[% imgsize %]"><img src="[% imgbase %]/tl.[% imgtype %]" width="[% imgsize %]" height="[% imgsize %]"></td> <td rowspan="2" valign="middle" [%- IF align %] align="[% align %]"[% END %] [%- IF width %] width="100%"[% END %]> [%- content.length ? content : ' ' -%]</td> <td width="[% imgsize %]" align="right"><img src="[% imgbase %]/tr.[% imgtype %]" width="[% imgsize %]" height="[% imgsize %]"></td> </tr> <tr valign="bottom"> <td width="[% imgsize %]" align="left"><img src="[% imgbase %]/bl.[% imgtype %]" width="[% imgsize %]" height="[% imgsize %]"></td> <td width="[% imgsize %]" align="right"><img src="[% imgbase %]/br.[% imgtype %]" width="[% imgsize %]" height="[% imgsize %]"></td> </tr> </table> <!-- /tt2.splash.button --> 1.1 modperl-docs/tmpl/std/splash/config Index: config =================================================================== [% #-------------------------------------------------------------------- # the following hash is user-definable and can/should # be changed to suit your local environment and/or # preferences #-------------------------------------------------------------------- # Splash docs: http://www.template-toolkit.org/splash/ splash = { style = { default = { name = "Default" # border/space/pad widths border = 2 space = 2 pad = 2 col = { page => 'lilac' # page border back => 'white' # background fore => 'lilac' # foreground (e.g. button) edge => 'lilac' # edging strip fill => 'white' # fill (e.g. panels) text => 'black' # text #icon => 'black' # icons } font = { # face = 'Helvetica, Arial, Sans-Serif' # size = '+1' # bold = 1 } tab = { locate = 'right' # tab location on box align = 'center' # text alignment limit = 9 # max number before scroll } button = { width = 0 # grow to fit align = 'center' # text alignment } bar = { width = 0 # grow to fit align = 'left' # text alignment } } select = { name = "Selected" col = { fore = 'mauve' edge = 'mauve' fill = 'grey75' text = 'white' } font = { bold = 1 } } } }; -%] [% #-------------------------------------------------------------------- # hands off - you shouldn't need to mess with anything below here! :-) #-------------------------------------------------------------------- splash_sys = { name = 'Splash!' version = 0.02 homepage = 'http://www.template-toolkit.org/splash/' about = 'The Template Toolkit HTML Library / Widget Set' imgsize = 8 imgtype = 'gif' }; splash.import(splash_sys); splash.link = "<a href=\"$splash.homepage\">$splash.name</a>"; splash.bold = "<b>$splash.name</b>"; # load rgb table from HTML library PROCESS html/rgb; splash.rgb = rgb; -%] 1.1 modperl-docs/tmpl/std/splash/domm_buttom Index: domm_buttom =================================================================== [% # splash/button: a bar with rounded corners # # ARGS: content, style # STYLE: col, bgcol, align, width # SET default = splash.style.default ; DEFAULT style = default col = style.col.fore or default.col.fore bgcol = style.col.back or default.col.back align = style.button.align or default.button.align ; SET rgbcol = splash.rgb.$col imgbase = "$splash.images/$bgcol" imgsize = splash.imgsize imgtype = splash.imgtype ; -%] <!-- tt2.splash.domm_button --> [%- content.length ? content : ' ' -%] 1.1 modperl-docs/tmpl/std/splash/domm_button Index: domm_button =================================================================== [% # splash/button: a bar with rounded corners # # ARGS: content, style # STYLE: col, bgcol, align, width # SET default = splash.style.default ; DEFAULT style = default col = style.col.fore or default.col.fore bgcol = style.col.back or default.col.back align = style.button.align or default.button.align ; SET rgbcol = splash.rgb.$col imgbase = "$splash.images/$bgcol" imgsize = splash.imgsize imgtype = splash.imgtype ; -%] [% IF navstyle %]<div class='[%- navstyle -%]'>[% END %] [%- content.length ? content : ' ' -%] [% IF navstyle %]</div>[% END %] [% IF linebrake %]<br>[% END %] 1.1 modperl-docs/tmpl/std/splash/domm_menu Index: domm_menu =================================================================== [% # splash/menu: build menu as a sequence of buttons # ARGS: # buttons = [ # { link => 'page1.html', text => 'First Page' }, # { link => 'page2.html', text => 'Second Page' }, # ... # ], # select # item to select in range 1..n (0: none) -%] [% FOREACH button = buttons; style = (select == loop.count or select == button.text) ? splash.style.select : splash.style.default; WRAPPER splash/domm_button width = width ? '100%' : 0; INCLUDE splash/text content = button.text link = button.link prelink = button.prelink postlink = button.postlink; END; END %] 1.1 modperl-docs/tmpl/std/splash/domm_pulldown Index: domm_pulldown =================================================================== [% # splash/pull: menu as a vertical sequence of buttons # ARGS: # buttons = [ # { link => 'page1.html', text => 'First Page' }, # { link => 'page2.html', text => 'Second Page' }, # ... # ], # select # item to select in range 1..n (0: none) SET default = splash.style.default ; DEFAULT style = default space = style.space or default.space pad = style.pad or default.pad ; -%] [% FOREACH button = buttons; navstyle = (select == loop.count or select == button.text) ? "activenav" : "notactivenav"; WRAPPER splash/domm_button width = width ? '100%' : 0; INCLUDE splash/text content = button.text link = button.link; END; END %] 1.1 modperl-docs/tmpl/std/splash/dots Index: dots =================================================================== [% # splash/dots: a button with dot corners # # ARGS: content, style # STYLE: col, bgcol, align, width # SET default = splash.style.default ; DEFAULT style = default col = style.col.fore or default.col.fore bgcol = style.col.back or default.col.back align = style.button.align or default.button.align imgname = 'ringdot' ; SET rgbcol = splash.rgb.$col imgbase = "$splash.images/$bgcol" imgsize = splash.imgsize imgtype = splash.imgtype ; -%] <!-- tt2.splash.hair --> <table bgcolor="[% rgbcol %]"[% IF width %] width="[% width %]"[% END %] border="0" cellpadding="0" cellspacing="0"> <tr valign="top"> <td width="[% imgsize %]"><img src="[% imgbase %]/[% imgname %].[% imgtype %]" width="[% imgsize %]" height="[% imgsize %]"></td> <td rowspan="2" valign="middle" [%- IF align %] align="[% align %]"[% END %] [%- IF width %] width="100%"[% END %]> [%- content.length ? content : ' ' -%]</td> <td width="[% imgsize %]" align="right"><img src="[% imgbase %]/[% imgname %].[% imgtype %]" width="[% imgsize %]" height="[% imgsize %]"></td> </tr> <tr valign="bottom"> <td width="[% imgsize %]" align="left"><img src="[% imgbase %]/[% imgname %].[% imgtype %]" width="[% imgsize %]" height="[% imgsize %]"></td> <td width="[% imgsize %]" align="right"><img src="[% imgbase %]/[% imgname %].[% imgtype %]" width="[% imgsize %]" height="[% imgsize %]"></td> </tr> </table> <!-- /tt2.splash.hair --> 1.1 modperl-docs/tmpl/std/splash/dropbox Index: dropbox =================================================================== [% # splash/dropbox # SET default = splash.style.default ; DEFAULT style = default col = style.col.fore or default.col.fore bgcol = style.col.back or default.col.back edge = style.col.edge or default.col.edge fill = style.col.fill or default.col.fill ; SET rgbfore = splash.rgb.$col rgbback = splash.rgb.$bgcol rgbedge = splash.rgb.$edge imgfore = "$splash.images/$col" imgback = "$splash.images/$bgcol" imgsize = splash.imgsize imgtype = splash.imgtype border = border.defined ? border : style.border.defined ? style.border : default.border pad = pad.defined ? pad : style.pad.defined ? style.pad : default.pad ; -%] <!-- tt2.splash.dropbox --> <table border=0 [% IF width %]width="[% width %]"[% END %] bgcolor="[% rgbfore %]" cellpadding=0 cellspacing=0> <tr height="[% imgsize %]" valign=top> <td width="[% imgsize %]"><img src="[% imgback %]/tl.[% imgtype %]" width="[% imgsize %]" height="[% imgsize %]"></td> <td rowspan=2 valign="middle" [%- IF align %] align="[% align %]"[% END %] [%- IF width %] width="100%"[% END %]> [%- title %] </td> <td width="[% imgsize %]" align="right"><img src="[% imgback %]/tr.[% imgtype %]" width="[% imgsize %]" height="[% imgsize %]"></td> </tr> <tr height="[% imgsize %]" valign=bottom> <td width="[% imgsize %]" align=left><img src="[% imgback %]/bl.[% imgtype %]" width="[% imgsize %]" height="[% imgsize %]"></td> <td width="[% imgsize %]" align=right><img src="[% imgback %]/br.[% imgtype %]" width="[% imgsize %]" height="[% imgsize %]"></td> </tr> <tr> <td></td> <td bgcolor="[% rgbedge %]"> [%- INCLUDE splash/box col=rgbedge bgcol=fill width='100%' %]</td> <td></td> </tr> </table> <!-- /tt2.splash.dropbox --> 1.1 modperl-docs/tmpl/std/splash/frame Index: frame =================================================================== [% # splash/frame: a frame with an optional border # # ARGS: content, style # STYLE: col, bgcol, align, width # SET default = splash.style.default ; DEFAULT style = default col = style.col.edge or default.col.edge bgcol = style.col.fill or default.col.fill align = style.frame.align or default.frame.align ; SET border = border.defined ? border : style.border.defined ? style.border : default.border rgbfore = splash.rgb.$col rgbback = splash.rgb.$bgcol imgbase = "$splash.images/$bgcol" imgsize = splash.imgsize imgtype = splash.imgtype ; -%] <!-- tt2.splash.frame --> [% IF border; WRAPPER html/table + html/row + html/cell col = rgbfore border = 0 space = 0 pad = 0 ; INCLUDE html/table col = rgbback width = width ? '100%' : '' border = 0 space = border ; END; ELSE; INCLUDE html/table col = rgbback border = 0 space = 0 ; END %] <!-- /tt2.splash.frame --> 1.1 modperl-docs/tmpl/std/splash/hair Index: hair =================================================================== [% # splash/hair: an enclosing frame with crosshair corners # # ARGS: content, style # STYLE: col, bgcol, align, width # SET default = splash.style.default ; DEFAULT style = default col = style.col.fore or default.col.fore bgcol = style.col.back or default.col.back align = style.button.align or default.button.align pad = style.pad or default.pad ; SET rgbcol = splash.rgb.$col imgbase = "$splash.images/$bgcol" imgsize = splash.imgsize imgtype = splash.imgtype ; -%] <!-- tt2.splash.hair --> <table bgcolor="[% rgbcol %]"[% IF width %] width="[% width %]"[% END %] border="0" cellpadding="[% pad %]" cellspacing="0"> <tr valign="top"> <td width="[% imgsize %]"><img src="[% imgbase %]/tlhair.[% imgtype %]" width="[% imgsize %]" height="[% imgsize %]"></td> <td rowspan="2" valign="middle" [%- IF align %] align="[% align %]"[% END %] [%- IF width %] width="100%"[% END %]> [%- content.length ? content : ' ' -%]</td> <td width="[% imgsize %]" align="right"><img src="[% imgbase %]/trhair.[% imgtype %]" width="[% imgsize %]" height="[% imgsize %]"></td> </tr> <tr valign="bottom"> <td width="[% imgsize %]" align="left"><img src="[% imgbase %]/blhair.[% imgtype %]" width="[% imgsize %]" height="[% imgsize %]"></td> <td width="[% imgsize %]" align="right"><img src="[% imgbase %]/brhair.[% imgtype %]" width="[% imgsize %]" height="[% imgsize %]"></td> </tr> </table> <!-- /tt2.splash.hair --> 1.1 modperl-docs/tmpl/std/splash/homelink Index: homelink =================================================================== [% WRAPPER splash/button + splash/text style = splash.style.default bold = 1 link = splash.homepage ; splash.name; END; -%] 1.1 modperl-docs/tmpl/std/splash/icon Index: icon =================================================================== [% # splash.icon: one of the splash image components SET default = splash.style.default ; DEFAULT style = default col = style.col.icon or default.col.icon ; %] [%- IF link %]<a href="[% link %]">[% END -%] <img src="[% splash.images %]/[% col %]/[% img or 'dot' %].[% splash.imgtype %]" width="[% splash.imgsize %]" height="[% splash.imgsize %]" border="0"> [%- IF link %]</a>[% END %] 1.1 modperl-docs/tmpl/std/splash/menu Index: menu =================================================================== [% # splash/menu: build menu as a sequence of buttons # ARGS: # buttons = [ # { link => 'page1.html', text => 'First Page' }, # { link => 'page2.html', text => 'Second Page' }, # ... # ], # select # item to select in range 1..n (0: none) -%] <!-- tt2.splash.menu --> [% WRAPPER html/table + html/row align=0 col=0; FOREACH button = buttons; WRAPPER html/cell width=0 align=0 col=0; style = (select == loop.count or select == button.text) ? splash.style.select : splash.style.default; WRAPPER splash/button width = width ? '100%' : 0; INCLUDE splash/text content = button.text link = button.link; END; END; END; END %] <!-- /tt2.splash.menu --> 1.1 modperl-docs/tmpl/std/splash/menubar Index: menubar =================================================================== <!-- tt2.splash.menubar --> [% # splash/menubar: a bar with a menu # ARGS: # buttons # as per splash/menu # select # as per splash/menu # content # bar text # width # bar width DEFAULT width = '100%'; -%] <table border=0 [% IF width %]width="[% width %]"[% END %] cellpadding=0 cellspacing=0> <tr> <td>[% INCLUDE splash/button width="100%" align="left" select=1 %]</td> <td>[% INCLUDE splash/menu width=0 col=0 %]</td> </tr> </table> <!-- /tt2.splash.menubar --> 1.1 modperl-docs/tmpl/std/splash/panel Index: panel =================================================================== [% # splash/panel: a panel (row/cell) within a frame (table) # # ARGS: content, style, (+ html/row, html/cell) # STYLE: col # DEFAULT col = style.col.fill or splash.style.default.col.fill ; WRAPPER html/row + html/cell col = col ? splash.rgb.$col : ''; content; END %] 1.1 modperl-docs/tmpl/std/splash/pulldown Index: pulldown =================================================================== [% # splash/pull: menu as a vertical sequence of buttons # ARGS: # buttons = [ # { link => 'page1.html', text => 'First Page' }, # { link => 'page2.html', text => 'Second Page' }, # ... # ], # select # item to select in range 1..n (0: none) SET default = splash.style.default ; DEFAULT style = default space = style.space or default.space pad = style.pad or default.pad ; -%] <!-- tt2.splash.pulldown --> [% WRAPPER html/table col=0; FOREACH button = buttons; WRAPPER html/row + html/cell width = width ? '100%' : 0, col=0; style = (select == loop.count or select == button.text) ? splash.style.select : splash.style.default; WRAPPER splash/button width = width ? '100%' : 0; INCLUDE splash/text content = button.text link = button.link; END; END; END; END %] <!-- /tt2.splash.pulldown --> 1.1 modperl-docs/tmpl/std/splash/tab Index: tab =================================================================== [% # ARGS: # content # tab content # width # tab width # style # style SET default = splash.style.default ; DEFAULT style = default col = style.col.fore or default.col.fore bgcol = style.col.back or default.col.back align = style.tab.align or default.tab.align ; SET rgbfore = splash.rgb.$col rgbback = splash.rgb.$bgcol imgfore = "$splash.images/$col" imgback = "$splash.images/$bgcol" imgsize = splash.imgsize imgtype = splash.imgtype up = invert ? 'bottom' : 'top' down = invert ? 'top' : 'bottom' ; -%] <!-- tt2.splash.tab (style: [% style.name %]) --> <table border=0 [% IF width %]width="[% width %]"[% END %] bgcolor="[% rgbfore %]" cellpadding="0" cellspacing="0"> <tr> <td bgcolor="[% rgbback %]" align="right" valign="[% down %]" width="[% imgsize %]"><img src="[% imgfore %]/[% invert ? 'tr' :'br' %].[% imgtype %]" width="[% imgsize %]" height="[% imgsize %]"></td> <td bgcolor="[% rgbfore %]" align="left" valign="[% up %]" width="[% imgsize %]"><img src="[% imgback %]/[% invert ? 'bl' : 'tl' %].[% imgtype %]" width="[% imgsize %]" height="[% imgsize %]"></td> <td bgcolor="[% rgbfore %]" valign="middle"[% IF align %] align="[% align %]"[% END %] [%- IF width %] width="100%"[% END %]> [%- content.length ? content : ' ' -%]</td> <td bgcolor="[% rgbfore %]" align="right" valign="[% up %]" width="[% imgsize %]"><img src="[% imgback %]/[% invert ? 'br' : 'tr' %].[% imgtype %]" width="[% imgsize %]" height="[% imgsize %]"></td> <td bgcolor="[% rgbback %]" align="left" valign="[% down %]" width="[% imgsize %]"><img src="[% imgfore %]/[% invert ? 'tl' : 'bl' %].[% imgtype %]" width="[% imgsize %]" height="[% imgsize %]"></td> </tr> </table> <!-- /tt2.splash.tab --> 1.1 modperl-docs/tmpl/std/splash/tabbox Index: tabbox =================================================================== [% # splash/tabbox: a box with a single tab # # ARGS: title, content, style, tabwidth, tablocate, tabalign # SET default = splash.style.default ; DEFAULT style = default col = style.col.fore or default.col.fore bgcol = style.col.back or default.col.back edge = style.col.edge or default.col.edge fill = style.col.fill or default.col.fill tabalign = style.tab.align or default.tab.align tabwidth = style.tab.width or default.tab.width tablocate = style.tab.locate or default.tab.locate ; SET rgbfore = splash.rgb.$col rgbback = splash.rgb.$bgcol imgfore = "$splash.images/$col" imgback = "$splash.images/$bgcol" imgsize = splash.imgsize imgtype = splash.imgtype up = invert ? 'bottom' : 'top' down = invert ? 'top' : 'bottom' border = border.defined ? border : style.border.defined ? style.border : default.border pad = pad.defined ? pad : style.pad.defined ? style.pad : default.pad ; -%] <!-- tt2.splash.tabbox --> <table border=0 cellpadding=0 cellspacing=0 [%- IF width %] width="[% width %]"[% END %]> <tr> <td align="[% tablocate %]"> [%- INCLUDE splash/tab width = tabwidth align = tabalign content = title %]</td> </tr> <tr> <td>[% INCLUDE splash/box col=edge bgcol=fill width='100%' %]</td> </tr> </table> <!-- /splash.tabbox --> 1.1 modperl-docs/tmpl/std/splash/tabsbox Index: tabsbox =================================================================== <!-- tt2.splash.tabsbox --> [% # splash/tabsbox: a box with a row of tabs # # ARGS: # tabs # list of { text => '...', link => '...' } tabs # select # tab to select (1 - n, 0: none) # content # box content # width # box width (default: 0, grow to fit content) # The following default to values set in the select style # fill # fill colour # border # border width # pad # box padding # tabalign # alignment of tab texts # tablocate # tab location ('left', 'center', 'right') # + all configuration values for splash/text SET default = splash.style.default ; DEFAULT style = default col = style.col.fore or default.col.fore bgcol = style.col.bgcol or default.col.bgcol fill = style.col.fill or default.col.fill tablocate = style.tab.locate or default.tab.locate ; SET # rgbcol = splash.rgb.$edge # imgdir = "$splash.images/$edge" # imgsize = splash.imgsize border = border.defined ? border : (style.border.defined ? style.border : default.border) pad = pad.defined ? pad : (style.pad.defined ? style.pad : default.pad) -%] [% IF 1 %] <table border=0 cellpadding=0 cellspacing=0 [%- IF width %] width="[% width %]"[% END %]> [% INCLUDE tabset UNLESS invert -%] <tr> <td> [%- WRAPPER splash/box width='100%' pad = 0 space = 0 col = select ? splash.style.select.col.fore : splash.style.default.col.fore; INCLUDE splash/box width = '100%' bgcol = fill border=0; END; -%] </td> </tr> [% INCLUDE tabset IF invert -%] </table> <!-- /splash.tabsbox --> [% BLOCK tabset -%] <tr> <td align="[% tablocate %]"> [% INCLUDE splash/tabset col='' %]</td> </tr> [% END -%] [% ELSE %] [% WRAPPER splash/frame border=0 -%] [% WRAPPER splash/panel width=width ? '100%' : 0 -%] [% INCLUDE tabset UNLESS invert -%] [% END -%] [% WRAPPER splash/frame; INCLUDE splash/panel col=fill width=width ? '100%' : 0; END -%] [% END %] [% END %] 1.1 modperl-docs/tmpl/std/splash/tabset Index: tabset =================================================================== <!-- tt2.splash.tabset (selected: [% select %]) --> [% # splash/tabset: a row of tabs # ARGS: # tabs # list of { text => '...', link => '...' } hashes # select # number of tab to select (1 - n, 0: none) # invert # flag to invert tabs (hang down) # limit # maximum number before scrolling # valign # vertical align tabs SET default = splash.style.default; DEFAULT style = default limit = style.tab.limit or default.tab.limit ; -%] <table border=0 cellpadding=0 cellspacing=0> <tr> [%- IF tabs.size > limit; FOREACH tab = tabs; IF select == loop.count or select == tab.text; IF loop.prev; INCLUDE tabtext left = 1 tab = loop.prev link = loop.prev.link style = splash.style.default WRAPPER html/cell width=0; END; INCLUDE tabtext style = splash.style.select WRAPPER html/cell width=0; IF loop.next; INCLUDE tabtext right = 1 tab = loop.next link = loop.next.link style = splash.style.default WRAPPER html/cell width=0; END; LAST; END; END; ELSE; FOREACH tab = tabs; WRAPPER html/cell width=0; style = (select == loop.count or select == tab.text) ? splash.style.select : splash.style.default; content = INCLUDE splash/text content=tab.text link=tab.link; INCLUDE splash/tab link = tab.link width = ''; END; END; END; BLOCK tabtext; content = INCLUDE splash/text content = tab.text link = tab.link; IF left; content = WRAPPER html/table + html/row valign='middle' width=0 pad=0 space=0 border=0; WRAPPER html/cell width=0; INCLUDE splash/icon img='left'; ' '; END; INCLUDE html/cell width=0; # previous content END; ELSIF right; content = WRAPPER html/table + html/row valign='middle' width=0 pad=0 space=0 border=0; INCLUDE html/cell width=0; # previous content WRAPPER html/cell width=0; ' '; INCLUDE splash/icon img='right'; END; END; END; INCLUDE splash/tab link = tab.link width = ''; END; %] </tr> </table> <!-- /tt2.splash.tabset --> 1.1 modperl-docs/tmpl/std/splash/text Index: text =================================================================== [% IF prelink %][% prelink %][% END -%][% IF link %]<a href="[% link %]">[% END -%][%- content %][%- "</a>" IF link %][% IF postlink %][% postlink %][% END -%] 1.1 modperl-docs/tmpl/std/splash/ttdotorg Index: ttdotorg =================================================================== <a href="http://www.template-toolkit.org/"><img src="[% splash.images.replace('splash$', 'ttdotorg.gif') # ugly hack %]" width="110" height="60" border="0"></a> 1.1 modperl-docs/tmpl/std/splash/ttpower Index: ttpower =================================================================== <a href="http://www.template-toolkit.org/"><img src="[% splash.images.replace('splash$', 'tt2power.gif') # ugly hack %]" width="78" height="47" border="0" alt="powered by Template::Toolkit"></a>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]