Adam Gent

Results 165 comments of Adam Gent

Probably a better solution for JTE 3.0 and greater is to use https://github.com/casid/jte/tree/main/jte-models And to do what Rocker and JStachio do of returning the model instance directly instead of ModelAndView.

There is also the [`ResultHandler` way as well](https://github.com/jooby-project/jooby/blob/3.x/modules/jooby-rocker/src/main/java/io/jooby/rocker/RockerResultHandler.java). I was unaware of that way till I looked at Rocker's Jooby integration. To be honest I'm not really sure when the...

@satsen FWIW that is more or less what we do albeit not for the exact reasons. Our need is to hand over some attributes that our bound to the request...

FWIW I use mustache to template java code but change the delimiters to $$. {{=$$ $$=}} That seems to keep most syntax highlighting working. In fact that was one of...

> should this be a Java annotation processor? Or something else? @jknack are you talking about generating source code or analyzing the code? In terms of analyzing there are three...

Yes you will need to provide... multiple options for that. Read my doc on what JStachio does: https://jstach.io/jstachio/#jstachio_modules and https://jstach.io/jstachio/io.jstach.jstache/io/jstach/jstache/JStacheCatalog.html Basically for modular applications you need to generate some java...

No you do not need to but you might want to. I’m sorry I had a brain fart. The only reason why you might consider it is referencing generated code...

> @agentgt It is a good chance to get rid of ServiceLocator here. I think it is the best. My concern is that it would be disruptive. If we do...

> Honestly, I don't care. I don't see a huge thing to replace mvnc(Foo) with mvc(new Foo$Route()) I might be being dense on this but for every controller you would...

Yes but what I'm saying is we (my company) do not do: ```java // I assume folks do this rely on DI mvc(Controller.class); ``` We do this: ```java mvc(new Controller());...