grow / grow.dev

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

Update missing information about creating custom preprocessors #67

Closed Haugen closed 4 years ago

Haugen commented 4 years ago

While trying to create a custom preprocessor according to the documentation I noticed an error saying ImportError: No module named extensions. Turns out each folder now needs an empty __init__.py file to work. I also changed the path from extensions.preprocessors to ext to avoid having to use two init file.

Hope we can get this in to help others trying to create preprocessors with the current version of Grow.

Zoramite commented 4 years ago

Thanks for the updates. We have mostly switched to what you have suggested, using the ext for in repo extensions, and the extensions dir is used for external extensions that are installed when doing a grow install.