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

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

Serving Software Downloads in 976 Categories, Downloaded 30.074.035 Times

Template::Tools::ttree 2.19

  Date Added: June 02, 2010  |  Visits: 970

Template::Tools::ttree

Report Broken Link
Printer Friendly Version


Product Homepage
Download (80 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
TEMPLATE::TOOLS::TTREE RELATED
Desktop Utilities  -  Copy file or directory path 0.2
Copy file or directory path is a service menu that can copy the full path of file or directory to klipper.. Download KDE-Apps.org Community Portal for KDE Applications Software Office Multimedia Graphic Network Printing Education Games Development...
 
Libraries  -  Config::Framework 2.5
Config::Framework is a Perl module with handy one-stop shopping for (most) of your configuration file needs. SYNOPSIS #create a new object, load two configuration files and decrypt the passwords. my $Object = new Config::Framework( Files =>...
15.36 KB  
Libraries  -  Config::Fast 1.07
Config::Fast is an extremely fast configuration file parser. SYNOPSIS # default config format is a space-separated file company "Supercool, Inc." support nobody@nowhere.com # and then in Perl use Config::Fast; %cf = fastconfig; print...
10.24 KB  
Libraries  -  File::Find::Parallel 0.0.4
File::Find::Parallel allows you to traverse a number of similar directories in parallel. SYNOPSIS use File::Find::Parallel; my $ffp = File::Find::Parallel->new( qw( /foo /bar ) ); print "Union:n"; my $union = $ffp->any_iterator print "...
9.22 KB  
File Synchronizers  -  clist 0.1.0
clist is a text-based directory browser and file manager. clist uses the curses library for graphics and the keyboard for interaction. The current release is an alpha release v0.1.0. There are a lot of features still to be added but I think...
39.94 KB  
Libraries  -  File::Find::Rule 0.30
SYNOPSIS use File::Find::Rule; # find all the subdirectories of a given directory my @subdirs = File::Find::Rule->directory->in( $directory ); # find all the .pm files in @INC my @files = File::Find::Rule->file() ->name( *.pm ) ->in( @INC...
14.34 KB  
Libraries  -  parse_conf library 0.91
parse_conf library is a simple library for reading scientific initial data from configuration files. Documentation is available below. It is convenient tool that makes reading initial values for your scientific project as easy as even possiable....
45.06 KB  
Libraries  -  ExtUtils::ModuleMaker::TT 0.93
ExtUtils::ModuleMaker::TT is a Perl module that makes skeleton modules with Template Toolkit templates. SYNOPSIS use ExtUtils::ModuleMaker; my $mmtt = ExtUtils::ModuleMaker->new ( NAME => My::New::Module, ALT_BUILD =>...
25.6 KB  
Libraries  -  File::Stat::ModeString 1.00
File::Stat::ModeString - conversion file stat mode to/from string representation. SYNOPSIS use File::Stat::ModeString; $string = mode_to_string ( $st_mode ); $st_mode = string_to_mode ( $string ); $type = mode_to_typechar( $st_mode );...
7.17 KB  
Libraries  -  Audio::TagLib::MPEG::File 1.42
Audio::TagLib::MPEG::File is an MPEG file class with some useful methods specific to MPEG. SYNOPSIS use Audio::TagLib::MPEG::File; my $i = Audio::TagLib::MPEG::File->new("sample file.mp3"); print $i->tag()->artist()->toCString(), "n"; # got...
1.4 MB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.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...
2.73 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