File: README.empy

package info (click to toggle)
pylize 1.3b-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 356 kB
  • ctags: 140
  • sloc: python: 935; makefile: 65
file content (30 lines) | stat: -rw-r--r-- 1,265 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
IMPORTANT NOTICE:

pylize comes with three template files in the "lib" directory called
"all.tmpl", "default.tmpl" and "index.tmpl".

From version 1.2b pylize uses the "empy" module as its template processing
engine. Since templates for empy have a slightly different syntax, the
templates distributed with pylize version 1.1b and earlier won't work anymore.

This should not be a problem for you, if you have not changed the templates
in the "lib" directory (i.e. the files with *.tmpl extension). Existing
master ("all.html") files can be processed with the new templates without
problems.

But if you changed the templates itself, you have to adapt the variable
placeholders in them to the new empy syntax.

This means, you have to change every occurence of "{something}" in the
templates to "@(something)".

Luckily, I wrote a small python utility that does this job for you. It's
called "fixtemplate.py" and is in the top directory of the distribution.

To use it, just execute the following commandline:

$ python fixtemplyte.py <yourtemplate.tmpl>

where <yourtemplate.tmpl> is the template file in which you want to replace
the variable placeholders. The file will be changed in place, so make a
backup, if you don't trust me (always a good idea, anyway!).