Source

crosswiki / crosswiki / subscribers.py

Full commit
1
2
3
4
5
6
7
8
9
from pyramid.events import subscriber
from pyramid.events import BeforeRender

from . import helpers

@subscriber(BeforeRender)
def add_renderer_globals(event):
    event['h'] = helpers