Skip to content

Cannot use default export in react template #502

Closed
@rmorshea

Description

@rmorshea

Current Situation

Right now, you can't use the default export from a module that came from module_from_template.

Proposed Changes

The only option I see is to include a react-default-export template that includes the default export.

Implementation Details

I'd rather not duplicate code, so maybe we can have a VERY primitive templating language, where a line starting with $TEMPLATE: ... indicates that the contents of file to follow should be inserted at that point.

If the templates get any more complicated that this we should consider a different solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions