Skip to content

compile() preserves include statements, which sort of defeats the point #359

Description

@Nickersoft

Is your feature request related to a problem? Please describe.
Yes – seeing I'm using eta with a bundler, I am using compile() along with a custom Vite plugin to convert eta imports into factories that will be bundled with my code. However, I noticed that include statements are preserved as is, which causes a runtime error as there is no views directory specified.

Describe the solution you'd like
I would expect templates to be fully resolved when compiled into factory methods.

Describe alternatives you've considered
Right now I'm exploring using regex to manually inline the partials, but this is less than ideal.

Additional context
N/A

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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