-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local variable declareation in templates. #26
Comments
Local variable assignment would be a useful feature. If you wanted to take Just one comment on your included code though -- seems like a lot of logic On Mon, May 2, 2016 at 5:42 PM, ismail-codar notifications@github.com
|
I looked at your code. It looks hard for me. I am not ANTLR family. Some developer documentation may be usefull. I have used rocker in one project. A swagger schema to client generator template is here. I want to share my views.I also would like to hear your thoughts. Rocker is very fast and very easy to use. Thanks your work. Especially hot reloading support helped me while developing templates. Otherwise it takes a lot of time. According to me {% %} like delimiter used template is more readable. For example @args (String packageName, String className, Map itemMap)
class YourClass {
@if(some logic) {
some code
}
} { and } are intermixing and readability is falling. Mostly templates aims multi language usability. Like https://mustache.github.io/ And rocker syntax looks can be adopted different platform. If the authors is not the purpose of this! embedding java codes in template feature would be very useful. Thinking wider than local variable assignment. Loops, if else conditions and variable declerations, assigments etc can be used with embedding java code. |
Appreciate your feedback. It's cool you're using Rocker to help generate a In my opinion, templates should not have much actual logic. Rocker On Wed, May 4, 2016 at 1:07 AM, ismail-codar notifications@github.com
|
hmmm, just to check why I was @. |
@ismail-codar latest version includes a new |
My template like this:
But SwaggerUtil.responseTypeName(.. function calling 2 times.
Can I use it like following
The text was updated successfully, but these errors were encountered: