grow / grow.dev

Grow's homepage and documentation site.
https://grow.io
85 stars 36 forks source link

Update a code snippet in extensions.md #30

Closed tushuhei closed 8 years ago

tushuhei commented 8 years ago

Since the original code snippet incurs AttributeError ('module' object has no attribute 'ext'), I rewrite the code snippet to make it work.

jeremydw commented 8 years ago

Thanks! It turns out the import jinja2; jinja2.ext.Extension syntax doesn't work reliably across both unpackaged and packaged grows, but yours does. Thank you!