Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.247.150 Times

Template::Tools::ttree 2.19

  Date Added: June 02, 2010  |  Visits: 1.530

Template::Tools::ttree

Report Broken Link
Printer Friendly Version


Product Homepage
Download (102 downloads)



Template::Tools::ttree module can process entire directory trees of templates. SYNOPSIS ttree [options] [files] The ttree script is used to process entire directory trees containing template files. The resulting output from processing each file is then written to a corresponding file in a destination directory. The script compares the modification times of source and destination files (where they already exist) and processes only those files that have been modified. In other words, it is the equivalent of make for the Template Toolkit. It supports a number of options which can be used to configure behaviour, define locations and set Template Toolkit options. The script first reads the .ttreerc configuration file in the HOME directory, or an alternative file specified in the TTREERC environment variable. Then, it processes any command line arguments, including any additional configuration files specified via the -f (file) option. The .ttreerc Configuration File When you run ttree for the first time it will ask you if you want it to create a .ttreerc file for you. This will be created in your home directory. $ ttree Do you want me to create a sample .ttreerc file for you? (file: /home/abw/.ttreerc) [y/n]: y /home/abw/.ttreerc created. Please edit accordingly and re-run ttree The purpose of this file is to set any global configuration options that you want applied every time ttree is run. For example, you can use the ignore and copy option to provide regular expressions that specify which files should be ignored and which should be copied rather than being processed as templates. You may also want to set flags like verbose and recurse according to your preference. A minimal .ttreerc: # ignore these files ignore = b(CVS|RCS)b ignore = ^# ignore = ~$ # copy these files copy = .(gif|png|jpg|pdf)$ # recurse into directories recurse # provide info about whats going on verbose In most cases, youll want to create a different ttree configuration file for each project youre working on. The cfg option allows you to specify a directory where ttree can find further configuration files. cfg = /home/abw/.ttree The -f command line option can be used to specify which configuration file should be used. You can specify a filename using an absolute or relative path: $ ttree -f /home/abw/web/example/etc/ttree.cfg $ ttree -f ./etc/ttree.cfg $ ttree -f ../etc/ttree.cfg If the configuration file does not begin with / or . or something that looks like a MS-DOS absolute path (e.g. C:etcttree.cfg) then ttree will look for it in the directory specified by the cfg option. $ ttree -f test1 # /home/abw/.ttree/test1 The cfg option can only be used in the .ttreerc file. All the other options can be used in the .ttreerc or any other ttree configuration file. They can all also be specified as command line options. Remember that .ttreerc is always processed before any configuration file specified with the -f option. Certain options like lib can be used any number of times and accumulate their values. For example, consider the following configuration files: /home/abw/.ttreerc: cfg = /home/abw/.ttree lib = /usr/local/tt2/templates /home/abw/.ttree/myconfig: lib = /home/abw/web/example/templates/lib When ttree is invoked as follows: $ ttree -f myconfig the lib option will be set to the following directories: /usr/local/tt2/templates /home/abw/web/example/templates/lib Any templates located under /usr/local/tt2/templates will be used in preference to those located under /home/abw/web/example/templates/lib. This may be what you want, but then again, it might not. For this reason, it is good practice to keep the .ttreerc as simple as possible and use different configuration files for each ttree project..

Requirements: No special requirements
Platforms: Linux
Keyword: -f Configuration Configuration File Directory Directory Trees File Files Libraries Programming Templatetoolsttree Ttree
Users rating: 0/10

License: Freeware Size: 768 KB
USER REVIEWS
More Reviews or Write Review


TEMPLATE::TOOLS::TTREE RELATED
Libraries  -  Java::SJ::Config 0.01
Java::SJ::Config is a Perl module that represents SJ Configuration File. It uses XML::XPath to parse configuration files and generates objects to represent the directives. Unless youre working on the module what you really want to know is what...
18.43 KB  
Libraries  -  Portable Libconfig 0.2.1
Libconfig is a configuration file processing library that saves you from having to write your own configuration parsers and routines. This project supports callback functions, automatic variable assignment, and many different configuration file...
90.11 KB  
Libraries  -  libcfg+ 0.6.2
libcfg+ is a C library that features multi- command line and configuration file parsing. It is possible to set up various special properties such as quoting characters, deliminator strings, file comment prefixes, multi-line postfixes, and more....
163.84 KB  
Backup Utilities  -  DAR 2. 4. 2002
dar is a shell command that backs up directory trees and files, taking care of hard links, Extended Attributes, sparse files, MacOS's file forks, any inode type (including Solaris Door inodes), etc. It has been tested under Linux, Windows,...
7.2 MB  
Libraries  -  libetc 0.3
libetc is an LD_PRELOAD-able shared library designed for maintaining a home directory without dot-files. libetc intercepts file operations, so if a program tries to open a dotfile in $HOME, it is redirected to $XDG_CONFIG_HOME (as defined by...
13.31 KB  
File Utilities  -  Directory cleaner and files organizer 2.2
Directory cleaner and files organizer is an intelligent tool to clean the directory and move files to preselected folders.Perfect for cleaning of directories with lot of different files The script recognizes more than 470 extensions.
10.24 KB  
Utilities  -  Disk ARchive 2.3.4
Dar is a shell command that backs up directory trees and files. Disk ARchive has been tested under Linux, Windows, Solaris, FreeBSD, and NetBSD, and is released under the GNU General Public License (GPL). Since version 2.0.0 an Application...
1003.52 KB  
Text Management  -  Read configuration from a text file 1.0
In a configuration file you have some options. These are grouped in name and value pairs. These pairs belong to one section and a section is indicated by a name in brackets. This Python class reads such a file.
 
Libraries  -  Simple XML Configuration Library 0.3.6
Simple XML Configuration Library an XML library for parsing a simple configuration file format. Simple XML Configuration Library is actively developed for *nix, Mac OS X and *BSD. The goal of the project is to provide a library that can be...
22.53 KB  
Libraries  -  File::Path 5.8.8
File::Path is a Perl module to create or remove directory trees. SYNOPSIS use File::Path; mkpath([/foo/bar/baz, blurfl/quux], 1, 0711); rmtree([foo/bar/baz, blurfl/quux], 1, 1); The mkpath function provides a convenient way to create...
12.2 MB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB