Simple Perl Templating System

This shoudld be a simple enough project for anybody who knows what they are doing. I need a simple template system created that generates static HTML pages. The perl script will read a config file such as the one below. --- # Template Config debug 0 templateSite /c3engine/www-build liveSite /c3engine/www templateExtention \.html\$ --- Then find all instances of the specified filetype (.html) using the following code: my $search = new File::List($config{templateSite}); $search->show_empty_dirs(); $search->debug($config{debug}); my %files = %{ $search->find($config{templateExtention}) }; % symbol used instead of 'at' symbol because of the stupid RAC no email regulations. Each file will then be processed in turn and parsed for commands between the following tags An example tag entry will be breadcrumb=diet or menu=health,diet A simple switch/case should pickup the command i.e. breadcrumb, menu and the parameters after = should be available as a single variable. i.e. $params = 'health,diet'; Just use the examples above for the code I will extend it later. The switch/case should call a subroutine (one for each command) which will then return the HTML to replace the ... tag. The code should loop through until all instances of tags have been replaced and the file will be written in the same location but in the livesite dir. Code should be well laid out and documented. The config file should be read using Config::Simple That's it, pretty simple regex matching that's all. A rapid turnaround is required (24-36 hours) Andy

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows? (depending on the nature? of the deliverables):

a)? For web sites or? other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software? installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

Perl 5.8 under Linux.

Kemahiran: Kejuruteraan, MySQL, Perl, PHP, Kejuruteraan Perisian, Ujian Perisian

Lihat lagi: using regex in c, use case simple example, use case extend, simple use case examples, regex explained, regex examples, regex example, rapid hire, rapid coder, perl coder for hire, new hire email template, html 5 form tag, gnu regex c, gnu regex, find perl, find out which site template, extend use case, extend health, call andy, what is perl used for

Tentang Majikan:
( 33 ulasan ) United Kingdom

ID Projek: #3423570

Dianugerahkan kepada:


See private message.

$25.5 USD dalam 2 hari
(25 Ulasan)

3 pekerja bebas membida secara purata $28 untuk pekerjaan ini


See private message.

$25.5 USD dalam 2 hari
(17 Ulasan)

See private message.

$34 USD dalam 2 hari
(0 Ulasan)