public class Application extends JapidController {
public static void index() {
renderJapid(); // use the default index.html in the japidviews/SampleController directory
}
public static void authorPanel(final Author a) {
CacheableRunner r = new CacheableRunner("10s", genCacheKey()) {
@Override
protected RenderResult render() {
return new authorPanel().render(a);
}
};
throw new JapidResult(r.run());
// or render(r);
}