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

Error message needs improvement #36

Closed freewind closed 12 years ago

freewind commented 12 years ago

When I wrote:

<script src="@@{/public/javascripts/jquery-1.6.1.min.js}"></script>

In my page, it reports:

Execution exception 
    RuntimeException occured : error in running the renderer: No route found 

public class Articles extends JapidController {
17: 
18:     public static void write() {
19:         renderJapid();  // THIS LINE
20:     }

From this report, I don't know what exactly happened. Finally, I found the I should declare the script as:

 @@{'/public/javascripts/jquery-1.6.1.min.js'}

This is really not easy to find the reason from the error message, I think it should be improved.

branaway commented 12 years ago

I'll check it.

2011/9/23 freewind < reply@reply.github.com>

When I wrote:

In my page, it reports:

Execution exception RuntimeException occured : error in running the renderer: No route found

public class Articles extends JapidController { 17: 18: public static void write() { 19: renderJapid(); // THIS LINE 20: }

From this report, I don't know what exactly happened. Finally, I found the I should declare the script as:

@@{'/public/javascripts/jquery-1.6.1.min.js'}

This is really not easy to find the reason from the error message, I think it should be improved.

Reply to this email directly or view it on GitHub: https://github.com/branaway/Japid/issues/36

branaway commented 12 years ago

the new version 0.8.9.7 adds support for @@{/public/....html} syntax