File: __init__.py

package info (click to toggle)
python-pyramid-chameleon 0.3-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 356 kB
  • sloc: python: 976; makefile: 82
file content (13 lines) | stat: -rw-r--r-- 338 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
from . import (
    text,
    zpt,
    )

def includeme(config): # pragma: no cover
    """
    Adds renderers for .pt and .txt as well as registers Chameleon
    localization features.
    """
    config.add_renderer('.pt', zpt.renderer_factory)
    config.add_renderer('.txt', text.renderer_factory)
    config.include('.localization')