Closed DaniSalasDev closed 1 year ago
Hey Dan how are you doing? Thank you very much for you the issue. I'm currently reworking the ViewAttributes in the 0.7.0-SNAPSHOT branch. You can get it like this:
repositories {
mavenCentral()
maven {
url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
mavenContent {
snapshotsOnly()
}
}
}
dependencies {
implementation("de.tschuehly:spring-view-component-jte:0.7.0-SNAPSHOT")
annotationProcessor("de.tschuehly:spring-view-component-core:0.7.0-SNAPSHOT")
}
You can check out an example here: https://github.com/tschuehly/spring-view-component/tree/v0.7.0-SNAPSHOT/examples/thymeleaf-java-example/src
Much appreciated!
I still have very little time for side projects, but I at least wanted to take this for a spin.
Funny that you mentioned the 'GitHub developed a similar Library for Ruby on Rails to ease the development of the very site you are on right now', as I'm working on a CRUD and its only exotic feature is a markdown editor like this one.
Will check the new version, and hopefully I can provide more feedback on that :)
Also, on my end it's good if you close this as not planned with the rework.
Using:
The following snippet fails to compile:
The
ViewContext
constructor doesn't work as expected in Java due to the following reasons:contextAttributes
not being the last arg makes them unable to be varargscomponentTemplate: String? = null
arg translates in failing to considercontextAttributes
varargsThe solution (attempting to have minimal to no impact for Kotlin APIs) would be the following replacement for
ViewContext.kt
constructorsWould have loved to provide a PR with test coverage for the compile error too, but wasn't sure about how to contribute (branch to create from/PR to).
Also, please let me know if providing a sample project would be useful.