Skip to content

[question] importing modules in staticmodules #3

@tlienart

Description

@tlienart

you say explicitly in the readme that static modules don't support 'using', I'm wondering whether there's any path to importing foreign code in a static module as that would something I'd find quite helpful.

For context in Franklin.jl pages with Julia code have the code executed in a module that's tied to the page; it's the same idea (I think) as the static module except that it's not as clean and it's a full module so import statements will work.
It might improve overall code quality if I were to use something dedicated instead of my own soup but I'd need to be able have import statements.

Is this impossible due to the way it's constructed and the only way is effectively having a full module?

I could see Weave being interested in this too (the above mentioned soup is adapted from Weave code).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions