Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template inheritance/include does not work in jar #82

Open
khoa-incepIT opened this issue Nov 19, 2019 · 0 comments
Open

Template inheritance/include does not work in jar #82

khoa-incepIT opened this issue Nov 19, 2019 · 0 comments

Comments

@khoa-incepIT
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant