Browse Source

adding restructuredtext plugin support

main
Jared Forsyth 11 years ago
committed by Lakshmi Vyasarajan
parent
commit
f130a9995c
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      hyde/ext/templates/jinja.py

+ 5
- 0
hyde/ext/templates/jinja.py View File

@@ -160,6 +160,11 @@ def restructuredtext(env, value):
highlight_source = False
if hasattr(env.config, 'restructuredtext'):
highlight_source = getattr(env.config.restructuredtext, 'highlight_source', False)
extensions = getattr(env.config.restructuredtext, 'extensions', [])
import imp
for extension in extensions:
imp.load_module(extension, *imp.find_module(extension))


if highlight_source:
import hyde.lib.pygments.rst_directive


Loading…
Cancel
Save