My epic quest to learn Template Toolkit
Jun. 16th, 2010 03:02 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
I thought this might be useful for anyone who's as baffled by Template Toolkit as I am ;-)
First off, I just wanted to get something, anything, to work, so I would be able to play with it. It turns out there are a few different ways to use Template Toolkit, and Dreamwidth uses it via the Perl Template module. I installed this module on my laptop by doing this:
Then following this tutorial: Devshed: getting started with the Perl Template Toolkit, I put the following two files in the same directory:
destruction.tt:
( Read more... )
First off, I just wanted to get something, anything, to work, so I would be able to play with it. It turns out there are a few different ways to use Template Toolkit, and Dreamwidth uses it via the Perl Template module. I installed this module on my laptop by doing this:
$ sudo cpan Template
Then following this tutorial: Devshed: getting started with the Perl Template Toolkit, I put the following two files in the same directory:
destruction.tt:
People of [% planet %], your attention please.
This is [% captain %] of the Galactic Hyperspace Planning Council.
As you will no doubt be aware, the plans for development of the outlying regions of the Galaxy require the building of a hyperspatial express route through your star system, and regrettably your planet is one of those scheduled for destruction.
The process will take slightly less than [% time %].
Thank you.
( Read more... )