pyecore/pyecoregen

Allow passing context data via generator

moltob opened this issue · 2 comments

This is likely also a change in the base project pymultigen. Allow to pass in template context data from generators. Currently, contextual data is collected via tasks only. This does not work well with global data that e.g. is determined via user-given command line arguments. At that level, only the generator class is known, not the various tasks it utilizes.

Once implemented, use the feature to move the auto_register_package @aranega just added via PR #8 from the Jinja environment to the template context.

Implemented in #10.