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.
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.