Dependency:
Sherwood Botsford <[email protected]> Fri, 14 Apr 2017 14:27:01 -0600
| Newsgroups | gmane.comp.lang.perl.modules.template-toolkit |
|---|---|
| Message-ID | <CAOX=2F-2Fg_JV27MOLUKep9+GUVmDyWCigdDtymKYg3me0hgHQ@mail.gmail.com> |
--===============8532919891562320030==
Content-Type: multipart/alternative; boundary=94eb2c07d972052ed0054d26469f
--94eb2c07d972052ed0054d26469f
Content-Type: text/plain; charset=UTF-8
Typical template:
[% PROCESS header.inc
Title = "Alder"
Desc = "Alnus"
%]
<DIV id="content">
[% FILTER multimarkdown %]
# Alder
....
File name convention: templates end in .tt2, output files in .html, and
include files in .inc whether they are processed or included. inc files
are in {project}/lib
I figured that if I added this:
ttree -f .ttreerc --depend *.html=header.inc
that it would do the Right Thing.
I've also tried
ttree -f .ttreerc --depend *.html=lib/header.inc
ttree -f .ttreerc --depend *.tt2=header.inc
ttree -f .ttreerc --depend *=header.inc
ttree -f .ttreerc --depend *=lib/header.inc
Nothing happens.
590 ==> ttree -f .ttreerc --depend *=lib/header.inc
ttree 2.9 (Template Toolkit version 2.26)
Source: ./tt2
Destination: ./site
Include Path: [ ./lib, ./lib/Inventory ]
Ignore: [ ^#, ^\..*$, \.sw.$, bak$, \.ppm$, \.nef$, \.psd$,
content.tty, \.SAVED, ^\._.*, ~$, \.css$ ]
Copy: [ \.png$, \.gif$, \.jpg$, \.jpeg$, \.pdf$, \.xls$, \.php$,
\.ico$ ]
Accept: [ ]
Suffix: [ tt2 => html ]
Summary:
0 files processed
0 files copied
0 directories created
1295 files skipped (not modified)
331 files skipped (ignored)
Version 2.26 perl 5.23, Mac OSX 10.10.5 (Yosemite)
If I touch one of the tt2 files, it does that file.
What am I missing?
Regards
Sherwood
--94eb2c07d972052ed0054d26469f
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:"ti=
mes new roman",serif"><br clear=3D"all"></div><div class=3D"gmail_defa=
ult" style=3D"font-family:"times new roman",serif">Typical templa=
te:</div><div class=3D"gmail_default" style=3D"font-family:"times new =
roman",serif"><br></div><div class=3D"gmail_default"><div class=3D"gma=
il_default"><font face=3D"times new roman, serif">[% PROCESS header.inc=C2=
=A0</font></div><div class=3D"gmail_default"><font face=3D"times new roman,=
serif"><span class=3D"gmail-Apple-tab-span" style=3D"white-space:pre"> </s=
pan>Title =3D "Alder"=C2=A0</font></div><div class=3D"gmail_defau=
lt"><font face=3D"times new roman, serif"><span class=3D"gmail-Apple-tab-sp=
an" style=3D"white-space:pre"> </span>Desc =3D "Alnus"</font></di=
v><div class=3D"gmail_default"><font face=3D"times new roman, serif">%]</fo=
nt></div><div class=3D"gmail_default"><font face=3D"times new roman, serif"=
><DIV id=3D"content"></font></div><div class=3D"gmail_defau=
lt"><font face=3D"times new roman, serif">[% FILTER multimarkdown %]</font>=
</div><div class=3D"gmail_default"><font face=3D"times new roman, serif"><b=
r></font></div><div class=3D"gmail_default"><font face=3D"times new roman, =
serif"># Alder</font></div><div style=3D"font-family:"times new roman&=
quot;,serif">....</div><div style=3D"font-family:"times new roman"=
;,serif"><br></div><div style=3D"font-family:"times new roman",se=
rif">File name convention: =C2=A0templates end in .tt2, output files in .ht=
ml, and include files in .inc whether they are processed or included. =C2=
=A0inc files are in {project}/lib</div><div style=3D"font-family:"time=
s new roman",serif"><br></div><div style=3D"font-family:"times ne=
w roman",serif">I figured that if I added this:</div><div style=3D"fon=
t-family:"times new roman",serif"><br></div><div style=3D"font-fa=
mily:"times new roman",serif">
<p class=3D"gmail-p1"><span class=3D"gmail-s1">ttree -f .ttreerc --depend *=
.html=3Dheader.inc</span></p><p class=3D"gmail-p1"><span class=3D"gmail-s1"=
>that it would do the Right Thing.</span></p><p class=3D"gmail-p1"><span cl=
ass=3D"gmail-s1">I've also tried</span></p><p class=3D"gmail-p1"><span =
class=3D"gmail-s1">
</span></p><p class=3D"gmail-p1"><span class=3D"gmail-s1">ttree -f .ttreerc=
--depend *.html=3Dlib/header.inc</span></p><p class=3D"gmail-p1"><span cla=
ss=3D"gmail-s1">
</span></p><p class=3D"gmail-p1"><span class=3D"gmail-s1">ttree -f .ttreerc=
--depend *.tt2=3Dheader.inc</span></p><p class=3D"gmail-p1"><span class=3D=
"gmail-s1">
</span></p><p class=3D"gmail-p1"><span class=3D"gmail-s1">ttree -f .ttreerc=
--depend *=3Dheader.inc</span></p><p class=3D"gmail-p1"><span class=3D"gma=
il-s1">
</span></p><p class=3D"gmail-p1"><span class=3D"gmail-s1">ttree -f .ttreerc=
--depend *=3Dlib/header.inc</span></p><p class=3D"gmail-p1"><span class=3D=
"gmail-s1"><br></span></p><p class=3D"gmail-p1"><span class=3D"gmail-s1">No=
thing happens. =C2=A0</span></p><p class=3D"gmail-p1"><span class=3D"gmail-=
s1"><br></span></p><p class=3D"gmail-p1"><span class=3D"gmail-s1">590 =3D=
=3D> ttree -f .ttreerc --depend *=3Dlib/header.inc</span></p><p class=3D=
"gmail-p1"><span class=3D"gmail-s1">ttree 2.9 (Template Toolkit version 2.2=
6)</span></p><p class=3D"gmail-p2"><span class=3D"gmail-s1"></span><br></p>=
<p class=3D"gmail-p1"><span class=3D"gmail-s1">=C2=A0 =C2=A0 =C2=A0 Source:=
./tt2</span></p><p class=3D"gmail-p1"><span class=3D"gmail-s1">=C2=A0Desti=
nation: ./site</span></p><p class=3D"gmail-p1"><span class=3D"gmail-s1">Inc=
lude Path: [ ./lib, ./lib/Inventory ]</span></p><p class=3D"gmail-p1"><span=
class=3D"gmail-s1">=C2=A0 =C2=A0 =C2=A0 Ignore: [ ^#, ^\..*$, \.sw.$, bak$=
, \.ppm$, \.nef$, \.psd$, content.tty, \.SAVED, ^\._.*, ~$, \.css$ ]</span>=
</p><p class=3D"gmail-p1"><span class=3D"gmail-s1">=C2=A0 =C2=A0 =C2=A0 =C2=
=A0 Copy: [ \.png$, \.gif$, \.jpg$, \.jpeg$, \.pdf$, \.xls$, \.php$, \.ico$=
]</span></p><p class=3D"gmail-p1"><span class=3D"gmail-s1">=C2=A0 =C2=A0 =
=C2=A0 Accept: [=C2=A0 ]</span></p><p class=3D"gmail-p1"><span class=3D"gma=
il-s1">=C2=A0 =C2=A0 =C2=A0 Suffix: [ tt2 =3D> html ]</span></p><p class=
=3D"gmail-p1"><span class=3D"gmail-s1">=C2=A0=C2=A0 =C2=A0 Summary:=C2=A0</=
span></p><p class=3D"gmail-p1"><span class=3D"gmail-s1">=C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 0 files processed</span></p><p class=3D"gmail-p1">=
<span class=3D"gmail-s1">=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 0 files =
copied</span></p><p class=3D"gmail-p1"><span class=3D"gmail-s1">=C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 0 directories created</span></p><p class=3D=
"gmail-p1"><span class=3D"gmail-s1">=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2=A0 1295 =
files skipped (not modified)</span></p><p class=3D"gmail-p1"><span class=3D=
"gmail-s1">
</span></p><p class=3D"gmail-p1">=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 331 fil=
es skipped (ignored)<br></p><p class=3D"gmail-p1"><br></p><p class=3D"gmail=
-p1">Version 2.26 perl 5.23, Mac OSX 10.10.5 (Yosemite)</p><p class=3D"gmai=
l-p1"><br></p><p class=3D"gmail-p1">If I touch one of the tt2 files, it doe=
s that file.</p><p class=3D"gmail-p1"><br></p><p class=3D"gmail-p1">What am=
I missing?</p><p class=3D"gmail-p1"><span class=3D"gmail-s1"><br></span></=
p></div></div><div class=3D"gmail_default" style=3D"font-family:"times=
new roman",serif"><br></div><div class=3D"gmail_default" style=3D"fon=
t-family:"times new roman",serif"><br></div><div><div class=3D"gm=
ail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr"=
><div>Regards</div><div><br></div><div>Sherwood<br><br></div></div></div></=
div></div></div></div></div>
</div>
--94eb2c07d972052ed0054d26469f--
--===============8532919891562320030==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates
--===============8532919891562320030==--