Re: Dependency:
Lathan Bidwell <[email protected]> Mon, 17 Apr 2017 08:57:18 -0400
| Newsgroups | gmane.comp.lang.perl.modules.template-toolkit |
|---|---|
| Message-ID | <CAOqPvqjx2Vo+GSOvByeYFfLzt90pO0VxmJMknnGh3mCwbiQ74Q@mail.gmail.com> |
--===============8969222899695441298== Content-Type: multipart/alternative; boundary=001a11477c02070af3054d5c563a --001a11477c02070af3054d5c563a Content-Type: text/plain; charset=UTF-8 Hello Sherwood, I am less familiar with ttree's syntax, but I feel like Bash completion may be interfering with your command line arguments. You might try single quotes around the arguments with asterixs in them. i.e.: ttree -f .ttreerc --depend '*=lib/header.inc' *Lathan Bidwell* Web Programmer Division of Integrated Marketing & Communication Andrews University 269-471-6313 *office*www.andrews.edu "Seek Knowledge. Affirm Faith. Change the World." On Fri, Apr 14, 2017 at 4:27 PM, Sherwood Botsford <[email protected]> wrote: > > 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 > > > _______________________________________________ > templates mailing list > [email protected] > http://mail.template-toolkit.org/mailman/listinfo/templates > > --001a11477c02070af3054d5c563a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hello Sherwood,<div><br></div><div>I am less familiar with= ttree's syntax, but I feel like Bash completion may be interfering wit= h your command line arguments.</div><div><br></div><div>You might try singl= e quotes around the arguments with asterixs in them.</div><div><br></div><d= iv>i.e.:<br><span style=3D"font-family:"times new roman",serif;fo= nt-size:12.8px">ttree -f .ttreerc --depend '*=3Dlib/header.inc'</sp= an><br></div><div class=3D"gmail_extra"><br></div><div class=3D"gmail_extra= "><br clear=3D"all"><div><div class=3D"gmail_signature" data-smartmail=3D"g= mail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr"><div dir=3D"ltr"><sp= an style=3D"color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:14px"= ><div><div style=3D"font-family:Verdana,Helvetica,Arial;font-size:9pt;displ= ay:inline!important"><br></div></div><div style=3D"font-weight:bold"><b><di= v style=3D"font-family:Verdana,Helvetica,Arial;font-size:9pt;display:inline= !important">Lathan Bidwell</div></b><br></div><br></span><font style=3D"col= or:rgb(0,0,0);font-family:Verdana,Helvetica,Arial;font-size:x-small"><span = style=3D"font-size:8pt">Web Programmer<span><br>Division of Integrated Mark= eting & Communication<br>Andrews University<br><br></span><span><span t= itle=3D"Call with Google Voice"><span title=3D"Call with Google Voice">269-= 471-6313</span></span>=C2=A0=C2=A0</span><b>office<br></b><span><a href=3D"= http://www.andrews.edu/" style=3D"color:rgb(17,85,204)" target=3D"_blank">w= ww.andrews.edu</a><br><br>"Seek Knowledge.=C2=A0 Affirm Faith.=C2=A0 C= hange the World."</span></span></font><br><div><br></div></div></div><= /div></div></div></div> <br><div class=3D"gmail_quote">On Fri, Apr 14, 2017 at 4:27 PM, Sherwood Bo= tsford <span dir=3D"ltr"><<a href=3D"mailto:[email protected]" target= =3D"_blank">[email protected]</a>></span> wrote:<br><blockquote class= =3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd= ing-left:1ex"><div dir=3D"ltr"><div style=3D"font-family:"times new ro= man",serif"><br clear=3D"all"></div><div style=3D"font-family:"ti= mes new roman",serif">Typical template:</div><div style=3D"font-family= :"times new roman",serif"><br></div><div><div><font face=3D"times= new roman, serif">[% PROCESS header.inc=C2=A0</font></div><div><font face= =3D"times new roman, serif"><span class=3D"m_-1470110826317154779gmail-Appl= e-tab-span" style=3D"white-space:pre-wrap"> </span>Title =3D "Alder&qu= ot;=C2=A0</font></div><div><font face=3D"times new roman, serif"><span clas= s=3D"m_-1470110826317154779gmail-Apple-tab-span" style=3D"white-space:pre-w= rap"> </span>Desc =3D "Alnus"</font></div><div><font face=3D"time= s new roman, serif">%]</font></div><div><font face=3D"times new roman, seri= f"><DIV id=3D"content"></font></div><div><font face=3D"time= s new roman, serif">[% FILTER multimarkdown %]</font></div><div><font face= =3D"times new roman, serif"><br></font></div><div><font face=3D"times new r= oman, serif"># Alder</font></div><div style=3D"font-family:"times new = roman",serif">....</div><div style=3D"font-family:"times new roma= n",serif"><br></div><div style=3D"font-family:"times new roman&qu= ot;,serif">File name convention: =C2=A0templates end in .tt2, output files = in .html, and include files in .inc whether they are processed or included.= =C2=A0inc files are in {project}/lib</div><div style=3D"font-family:"= times new roman",serif"><br></div><div style=3D"font-family:"time= s new roman",serif">I figured that if I added this:</div><div style=3D= "font-family:"times new roman",serif"><br></div><div style=3D"fon= t-family:"times new roman",serif"> <p class=3D"m_-1470110826317154779gmail-p1"><span class=3D"m_-1470110826317= 154779gmail-s1">ttree -f .ttreerc --depend *.html=3Dheader.inc</span></p><p= class=3D"m_-1470110826317154779gmail-p1"><span class=3D"m_-147011082631715= 4779gmail-s1">that it would do the Right Thing.</span></p><p class=3D"m_-14= 70110826317154779gmail-p1"><span class=3D"m_-1470110826317154779gmail-s1">I= 've also tried</span></p><p class=3D"m_-1470110826317154779gmail-p1"><s= pan class=3D"m_-1470110826317154779gmail-s1"> </span></p><p class=3D"m_-1470110826317154779gmail-p1"><span class=3D"m_-14= 70110826317154779gmail-s1">ttree -f .ttreerc --depend *.html=3Dlib/header.i= nc</span></p><p class=3D"m_-1470110826317154779gmail-p1"><span class=3D"m_-= 1470110826317154779gmail-s1"> </span></p><p class=3D"m_-1470110826317154779gmail-p1"><span class=3D"m_-14= 70110826317154779gmail-s1">ttree -f .ttreerc --depend *.tt2=3Dheader.inc</s= pan></p><p class=3D"m_-1470110826317154779gmail-p1"><span class=3D"m_-14701= 10826317154779gmail-s1"> </span></p><p class=3D"m_-1470110826317154779gmail-p1"><span class=3D"m_-14= 70110826317154779gmail-s1">ttree -f .ttreerc --depend *=3Dheader.inc</span>= </p><p class=3D"m_-1470110826317154779gmail-p1"><span class=3D"m_-147011082= 6317154779gmail-s1"> </span></p><p class=3D"m_-1470110826317154779gmail-p1"><span class=3D"m_-14= 70110826317154779gmail-s1">ttree -f .ttreerc --depend *=3Dlib/header.inc</s= pan></p><p class=3D"m_-1470110826317154779gmail-p1"><span class=3D"m_-14701= 10826317154779gmail-s1"><br></span></p><p class=3D"m_-1470110826317154779gm= ail-p1"><span class=3D"m_-1470110826317154779gmail-s1">Nothing happens. =C2= =A0</span></p><p class=3D"m_-1470110826317154779gmail-p1"><span class=3D"m_= -1470110826317154779gmail-s1"><br></span></p><p class=3D"m_-147011082631715= 4779gmail-p1"><span class=3D"m_-1470110826317154779gmail-s1">590 =3D=3D>= ttree -f .ttreerc --depend *=3Dlib/header.inc</span></p><p class=3D"m_-147= 0110826317154779gmail-p1"><span class=3D"m_-1470110826317154779gmail-s1">tt= ree 2.9 (Template Toolkit version 2.26)</span></p><p class=3D"m_-1470110826= 317154779gmail-p2"><span class=3D"m_-1470110826317154779gmail-s1"></span><b= r></p><p class=3D"m_-1470110826317154779gmail-p1"><span class=3D"m_-1470110= 826317154779gmail-s1">=C2=A0 =C2=A0 =C2=A0 Source: ./tt2</span></p><p class= =3D"m_-1470110826317154779gmail-p1"><span class=3D"m_-1470110826317154779gm= ail-s1">=C2=A0Destination: ./site</span></p><p class=3D"m_-1470110826317154= 779gmail-p1"><span class=3D"m_-1470110826317154779gmail-s1">Include Path: [= ./lib, ./lib/Inventory ]</span></p><p class=3D"m_-1470110826317154779gmail= -p1"><span class=3D"m_-1470110826317154779gmail-s1">=C2=A0 =C2=A0 =C2=A0 Ig= nore: [ ^#, ^\..*$, \.sw.$, bak$, \.ppm$, \.nef$, \.psd$, content.tty, \.SA= VED, ^\._.*, ~$, \.css$ ]</span></p><p class=3D"m_-1470110826317154779gmail= -p1"><span class=3D"m_-1470110826317154779gmail-s1">=C2=A0 =C2=A0 =C2=A0 = =C2=A0 Copy: [ \.png$, \.gif$, \.jpg$, \.jpeg$, \.pdf$, \.xls$, \.php$, \.i= co$ ]</span></p><p class=3D"m_-1470110826317154779gmail-p1"><span class=3D"= m_-1470110826317154779gmail-s1">=C2=A0 =C2=A0 =C2=A0 Accept: [=C2=A0 ]</spa= n></p><p class=3D"m_-1470110826317154779gmail-p1"><span class=3D"m_-1470110= 826317154779gmail-s1">=C2=A0 =C2=A0 =C2=A0 Suffix: [ tt2 =3D> html ]</sp= an></p><p class=3D"m_-1470110826317154779gmail-p1"><span class=3D"m_-147011= 0826317154779gmail-s1">=C2=A0=C2=A0 =C2=A0 Summary:=C2=A0</span></p><p clas= s=3D"m_-1470110826317154779gmail-p1"><span class=3D"m_-1470110826317154779g= mail-s1">=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 0 files processed</span>= </p><p class=3D"m_-1470110826317154779gmail-p1"><span class=3D"m_-147011082= 6317154779gmail-s1">=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 0 files copie= d</span></p><p class=3D"m_-1470110826317154779gmail-p1"><span class=3D"m_-1= 470110826317154779gmail-s1">=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 0 dir= ectories created</span></p><p class=3D"m_-1470110826317154779gmail-p1"><spa= n class=3D"m_-1470110826317154779gmail-s1">=C2=A0=C2=A0 =C2=A0 =C2=A0 =C2= =A0 1295 files skipped (not modified)</span></p><p class=3D"m_-147011082631= 7154779gmail-p1"><span class=3D"m_-1470110826317154779gmail-s1"> </span></p><p class=3D"m_-1470110826317154779gmail-p1">=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 331 files skipped (ignored)<br></p><p class=3D"m_-1470110826= 317154779gmail-p1"><br></p><p class=3D"m_-1470110826317154779gmail-p1">Vers= ion 2.26 perl 5.23, Mac OSX 10.10.5 (Yosemite)</p><p class=3D"m_-1470110826= 317154779gmail-p1"><br></p><p class=3D"m_-1470110826317154779gmail-p1">If I= touch one of the tt2 files, it does that file.</p><p class=3D"m_-147011082= 6317154779gmail-p1"><br></p><p class=3D"m_-1470110826317154779gmail-p1">Wha= t am I missing?</p><p class=3D"m_-1470110826317154779gmail-p1"><span class= =3D"m_-1470110826317154779gmail-s1"><br></span></p></div></div><div style= =3D"font-family:"times new roman",serif"><br></div><div style=3D"= font-family:"times new roman",serif"><br></div><div><div class=3D= "m_-1470110826317154779gmail_signature"><div dir=3D"ltr"><div><div dir=3D"l= tr"><div><div dir=3D"ltr"><div>Regards</div><span class=3D"HOEnZb"><font co= lor=3D"#888888"><div><br></div><div>Sherwood<br><br></div></font></span></d= iv></div></div></div></div></div></div> </div> <br>______________________________<wbr>_________________<br> templates mailing list<br> <a href=3D"mailto:[email protected]">templates@template-toolki= t.org</a><br> <a href=3D"http://mail.template-toolkit.org/mailman/listinfo/templates" rel= =3D"noreferrer" target=3D"_blank">http://mail.template-toolkit.<wbr>org/mai= lman/listinfo/templates</a><br> <br></blockquote></div><br></div></div> --001a11477c02070af3054d5c563a-- --===============8969222899695441298== 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 --===============8969222899695441298==--