branaway / Japid

A Java-based statically-typed fast template engine that can be used in any Java code. It has special adapter for use with the Play! Framework.
113 stars 18 forks source link

JapidRenderer.refreshClasses() scans also outside of japidviews subfolder #53

Open marekk opened 11 years ago

marekk commented 11 years ago

The design of Japid is that all templates MUST be in templateRoot/japidviews subfolder.

JapidRenderer.refreshClasses() method scans everything in templateRoot, thus iterates also over other html files that don't belong to Japid. This throws StringIndexOutOfBoundsException in JapidRenderer.getClassName()

branaway commented 11 years ago

fixed github.

Thanks for reporting.