Skip to content
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

rocker-spring-boot-starter #111

Open
iceant opened this issue Jun 12, 2019 · 2 comments
Open

rocker-spring-boot-starter #111

iceant opened this issue Jun 12, 2019 · 2 comments

Comments

@iceant
Copy link

iceant commented Jun 12, 2019

Thanks for develop this greate template.
It's simple and powerful.
I used spring boot 2.x for web application development, but I can not find an integration with spring boot. So, I created one. Please check this:
https://github.com/iceant/rocker-spring-boot-starter

Thanks.

@damir78
Copy link

damir78 commented Jul 3, 2019

Hi @iceant ,

thanks for interesting implementation.
There are few (rocker+spring-boot) - suggestions.
Look for example https://github.com/linux-china/rocker-template-demo
Personally, I like this simple integration.
Regards

@iceant
Copy link
Author

iceant commented Jul 9, 2019

Hi, @damir78
Thanks for your comments.
I have checked that demo before start to write my own. It make sence to use default implementation of Rocker. But I have more complex usage to use rocker with spring boot.
For example, I use rocker to render web fragment(combined with 3 files: .js, .html, .css). There are 2 limitation in the default implementation:

  1. only support ".rocker.html" suffix. As you can see, I need to render .js and .css too. Yes, ".raw" is supported, but to make .js and .css with default file extension will make IDE friendly.
  2. I like the reload feature, just modify the template and refresh the page, everything is reloaded. That's so cool, and saved lots of my time for development. But rocker-compiler's default implementation had issue with that, TemplateCompiler can not handle classpath exactly. Also we need to config maven pom.xml to make that right. I'm lazy, I just want to import some jar files to make everything work. spring boot is good at that, so, I have to modify the default TemplateCompiler as RockerTemplateCompiler for that.

Also I used rocker for generate dynamic SQL and JavaBean to make coding simple and life easy.
Again, Thanks for develop this greate tools. It's fast and simple.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants