[Templates] ttree and .files
Jose Pedro Andres
macklus@debianitas.net
Mon, 02 Oct 2006 20:12:37 +0200
This is a multi-part message in MIME format.
--------------000906050400090504080503
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi all:<br>
I use .htaccess files, and ttree copy all of them without problem.<br>
My ttree.cfg file is like:<br>
<br>
# Archivos que deseamos ignorar<br>
ignore = \b(CVS|RCS)\b<br>
ignore = ^#<br>
ignore = ~$<br>
ignore = \.swp$<br>
<br>
# archivos que vamos a copiar tal cual<br>
# Imagenes<br>
copy = \.(gif|png|jpg|pdf|ico)$<br>
# Codigo JavaScript<br>
copy = \.(js)$<br>
<br>
Hope this help.<br>
<br>
Bill Ward escribió:
<blockquote
cite="mid3d2fe1780610021059p5418153vf055902bee98b7dc@mail.gmail.com"
type="cite">If you can't get ttree to do it the way you want, here are
some other ideas: If you have Apache server config access you can tell
it to use a non-dotted filename instead of ".htaccess" I think. Or you
could call the file _htaccess and then have a Perl script that renames
all the _htaccess files to .htaccess after running ttree.
<br>
<br>
<div><span class="gmail_quote">On 10/2/06, <b
class="gmail_sendername">Johan Vromans</b> <<a
href="mailto:jvromans@squirrel.nl">jvromans@squirrel.nl</a>> wrote:</span>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I
have a web site that is produced using ttree.<br>
Conveniently, dot-files are skipped in the process with a "ignore"<br>
instruction in ttree.cfg.<br>
<br>
However, I have .htaccess files that do need to be included (= copied).
<br>
<br>
Unfortunately, the instructions are processed in the order ignore /<br>
copy / accept.<br>
<br>
Is there an elegant work-around to skip dot files, while still being<br>
able to include some?<br>
<br>
-- Johan<br>
<br>
_______________________________________________
<br>
templates mailing list<br>
<a href="mailto:templates@template-toolkit.org">templates@template-toolkit.org</a><br>
<a
href="http://lists.template-toolkit.org/mailman/listinfo/templates">http://lists.template-toolkit.org/mailman/listinfo/templates
</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Help bring back the San Jose Earthquakes - <a
href="http://www.soccersiliconvalley.com/">http://www.soccersiliconvalley.com/</a><br>
</blockquote>
</body>
</html>
--------------000906050400090504080503
Content-Type: text/x-vcard; charset=utf-8;
name="macklus.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="macklus.vcf"
begin:vcard
fn:Jose Pedro Andres Garcia
n:Andres Garcia;Jose Pedro
email;internet:macklus@debianitas.net
x-mozilla-html:TRUE
url:http://www.macklus.net
version:2.1
end:vcard
--------------000906050400090504080503--