Interaction with outer language for template language

I'm developing a template language called that is used to embed html inside of Python files. The html expressions themselves are representing objects, which are assignable to Python names.

For example:

header = *

which is fine, but in turn the Python context see:

header =

which is an invalid statement causeing a red error mark.

Does anyone have any idea on how I can solve this?

Original message URL:

Please sign in to leave a comment.