| 133 | == Importing Template Modules == |
| 134 | |
| 135 | If you have template-specific modules inside your template folder, you can import them in config.py like in any other Python package, e.g.: |
| 136 | |
| 137 | {{{ |
| 138 | from controllers import index |
| 139 | }}} |
| 140 | |
| 141 | Be careful with name collisions, though - ideally, module names like "gluon.py" or "s3.py" should be avoided inside templates. If there is an unresolvable name collision, make sure you are explicit about the import path for outside modules. |
| 142 | |
| 143 | To import shared modules from other templates, use the template-path, e.g.: |
| 144 | |
| 145 | {{{ |
| 146 | from templates.SSF.controllers import subscriptions |
| 147 | }}} |
| 148 | |