~launchpad-pqm/launchpad/devel

7849.16.65 by Sidnei da Silva
- Move documentation from TODO into chameleon.txt
1
Running Launchpad with Chameleon Template Engine
2
================================================
3
12392.1.1 by Jonathan Lange
Fix restructured text errors.
4
- Need to pull the following dependencies into ``sourcecode``:
7849.16.65 by Sidnei da Silva
- Move documentation from TODO into chameleon.txt
5
6
  - lp:sourcecodegen/trunk
7
  - lp:chameleon.core/trunk
8
  - lp:chameleon.zpt/trunk
9
  - lp:z3c.pt/trunk
10
  - lp:z3c.ptcompat/trunk
11
12
- Run launchpad with ``PREFER_Z3C_PT=true make run`` to enable
13
  ``z3c.pt``. Omitting it or setting to ``false`` will disable
14
  ``z3c.pt`` and use ``zope.pagetemplate`` instead. Yes, it's that
15
  simple. This is possible thanks to ``z3c.ptcompat``.
16
12392.1.1 by Jonathan Lange
Fix restructured text errors.
17
18
Other useful environment options for ``z3c.pt``::
7849.16.65 by Sidnei da Silva
- Move documentation from TODO into chameleon.txt
19
20
  # in debug-mode, templates on disk are reloaded if they're modified
21
  CHAMELEON_DEBUG (default: false)
22
23
  # disable disk-cache to prevent the compiler from caching on disk
24
  CHAMELEON_CACHE (default: true)
25
26
  # if eager parsing is enabled, templates are parsed upon
27
  # instantiation, rather than when first called upon; this mode is
28
  # useful for verifying validity of templates across a project
29
  CHAMELEON_EAGER (default: false)
30
31
  # in strict mode, filled macro slots must exist in the macro that's
32
  # being used.
33
  CHAMELEON_STRICT (default: false)
34
35
  # when validation is enabled, dynamically inserted content is
36
  # validated against the XHTML standard
37
  CHAMELEON_VALIDATE (default: false)