Skip to content

To use python modules in templates, devs should be able to use python import expressions #175

@craigfowler

Description

@craigfowler

ZptSharp currently support python: expressions, but it has no way to import modules from elsewhere. This story is to add an import: expression type, borrowing similar syntax and functionality from the Chameleon framework. The actual syntax within the import expression would use the same syntax as a Python 2.7 import statement.

The overall effect would be quite similar to that of a C# using statement, enabling the use of some imported code/functionality.

Possible competing or related functionality

There is also - in the original ZPT spec - a note about referencing modules, which seems to relate to this. This should be examined alongside the proposal above to determine whether it competes or supplements that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAn improvement, new feature or other addition to the project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions