Questions tagged [template-toolkit]

The Template Toolkit is a fast, flexible and, highly extensible template processing system for Perl. There are also Python and JavaScript implementations.

The Template Toolkit is a fast, flexible and highly extensible template processing system. It is Free (in both senses: free beer and free speech), Open Source software and runs on virtually every modern operating system known to man. It is mature, reliable and well documented, and is used to generate content for countless web sites ranging from the very small to the very large.

It is written in the Perl programming language but you don't need to know any Perl to use it. In fact, it was specifically created to allow web designers and developers to concentrate on generating web pages without getting bogged down in programming matters. We call this a "Clear Separation of Concerns" and it makes the whole processes of building, updating and maintaining a web site or web application significantly easier.

References:

266 questions
0
votes
1 answer

Template Toolkit week number and day

I want to display the week number and the day with the date plugin in Template-toolkit. The output for today would be something like: 36 Monday I got the week number with the following code: [% USE date(format = '%W' ) %] [% date.format %] Still…
Twistar
  • 782
  • 5
  • 21
  • 35
0
votes
1 answer

Printing a Table from a Perl Data Structure

I have a Perl data structure like the following: %hash = ( table_id => { column_1_header => [ column_value_1, column_value_2, column_value_3 ], …
indiguy
  • 505
  • 1
  • 9
  • 21
0
votes
1 answer

Switch Case statements in template toolkit

I want to implement switch case statement in Template toolkit. My code is as follows: [% SWITCH myvar %] [% CASE > 4 %] Value is amplified [% CASE < 1%] Value is Deleted [% CASE %] Normal Value [%END%] I am getting a error message saying '<' and…
0
votes
1 answer

Search Option in Catalyst Framework

I have developed a web page for a database using catalyst and template toolkit. I have a table in my webpage. I want to have a search option in the same web page, which fetches data dynamically from the back end(database) and allows the user to…
0
votes
1 answer

Template-Toolkit and Juniper

I finally got Template-Toolkit installed and working, but I'm having some issues compiling with it. I'm trying to make a custom sign-on page for a Juniper gateway. From their doc (…
user1247595
  • 35
  • 1
  • 5
0
votes
1 answer

provide a downloadable file perl-template

I am working with Perl/CGI, MySQL, Perl Template toolkit. I have a database set up and some perl modules to query the database. From the perl modules I pass on a datastructure (hash of hashes) to perl template toolkit (.tt) and that renders the…
Sashi Kiran Challa
  • 905
  • 1
  • 11
  • 21
0
votes
1 answer

HTML5/PHP/jQuery: Defining Blocks of HTML (Template Toolkit Style)

We use Template Toolkit where I work, and I am looking for similar functionality, but minus the perl, using only HTML5, PHP, and jQuery. The app I am creating is an offline HTML5 app, so basically I want to do: if (localStorage.getItem(username) !=…
StephenRios
  • 2,192
  • 4
  • 26
  • 42
-1
votes
1 answer

Perl Template-Toolkit doesn't report an error when using a bogus filename

In Template Toolkit in Perl, I'm getting two errors instead of one. local $SIG{__DIE__} = \&fatal; print template('home.htssdfgsml'); sub template { # -------------------------------------------------------------- # my ($file, $vars) = @_; my…
Jonathan
  • 3,893
  • 5
  • 46
  • 77
-1
votes
1 answer

want to pass variable from template tool kit file to cgi script

i am having the code in the template tool kit file : test