Skip to content

Commit 801277e

Browse files
committed
Switch to on_before_build_all
1 parent 128d29c commit 801277e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lektor_debug.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ class DebugPlugin(Plugin):
4747
name = 'Lektor Debug'
4848
description = 'A Lektor Plugin for Debugging Help'
4949

50-
# TODO run this on all builds. on_before_build_all seems to sometimes error
50+
# XXX Occaisionally using on_before_build_all seems to sometimes error
5151
# with `TemplateSyntaxError: Encountered unknown tag 'debug'` and sometimes not.
52-
# def on_before_build_all(self, builder, **extra):
53-
def on_server_spawn(self, **extras):
52+
# Why? fixme
53+
def on_before_build_all(self, builder, **extra):
5454
if "jinja2.ext.DebugExtension" in self.env.jinja_env.extensions:
5555
del self.env.jinja_env.extensions["jinja2.ext.DebugExtension"]
5656

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
packages=find_packages(),
2626
py_modules=['lektor_debug'],
2727
url='https://github.com/terminal-labs/lektor-debug',
28-
version='0.1',
28+
version='0.1.1',
2929
classifiers=[
3030
'Framework :: Lektor',
3131
'Environment :: Plugins',

0 commit comments

Comments
 (0)