rawdog71 / Clownfish

Smart Content Management System using Spring Boot
Apache License 2.0
17 stars 7 forks source link

Include JVM languages #49

Closed rawdog71 closed 2 years ago

rawdog71 commented 2 years ago

Include JVM languages in backend to code business logic for the templates. Right now, the business logic can be implemented directly in the Freemarker/Velocity templates. To split this up and encourage devs to code business logic in JVM languages, it should be integrated in the backend aswell.

First language support should be JAVA for a proof of concept.

Hat-Kid commented 2 years ago
rawdog71 commented 2 years ago
rawdog71 commented 2 years ago

Classpath reloading problem fixed!

rawdog71 commented 2 years ago

Added Kotlin and Groovy support

rawdog71 commented 2 years ago

Added a classBean for templates that holds a map of instantiated classes.

The template looks like this: <#assign classbean = classBean> <#assign testclass1 = classbean.newInstance("TestClass1", "io.clownfish.java.TestClass")> <#assign testclass2 = classbean.newInstance("TestClass2", "io.clownfish.java.TestClass")> ${testclass1.method()} ${testclass2.method()}

rawdog71 commented 2 years ago

Added Scala to the JVM languages