Skip to content

Template inheritance/include does not work in jar #82

Description

@khoa-incepIT

By default, SparkClasspathTemplateLoader root will have a "File separator" at the end like "templates/". When the engine renders a template that inherits or includes other templates with path like "/base_templates/base_layout", it will get the resource at path like "templates//base_template/base_layout". This will work if it is run inside of IDEA however when run as a jar file, the double slashes "//" cause NullPointerException.

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