Skip to content

Fix for issue #52 broke everything #147

@Ribesg

Description

@Ribesg

I've got a jade template extending a layout file placed in the parent folder:

  • kek/index.jade
  • _layout.jade

I'm using extends ../_layout.jade. It worked in 1.2.3, but not in 1.2.4. You might want to add a little test for this one.

I traced the issue down to de.neuland.jade4j.template.ClasspathTemplateLoader.

  • Using version 1.2.3, when calling ClasspathTemplateLoader.getReader(), the passed parameter is jade\_layout.jade*. This works when calling getResourceAsStream.
  • Using version 1.2.4, the passed parameter is now jade\general/../_layout.jade, which does not work. getResourceAsStream returns null.

*Yes, this is running in debug mode on my windows. I'm not sure if using "/" in Jade4J's code is a good idea, but it worked until now.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions