Graal Javascript Renderer
Library providing a full pipeline for extracting, caching and executing Javascript source code on Graal for markup generation purposes.
Documentation
Complete description of the library together with tutorials and how to articles can be found in the link below.
Modules
- templating - main part of the library. Depends mainly on Graal JS SDK. Independent of any framework.
- templating/src/main/js/bridge - JS module establishing a standard entrypoint to JS logic.
- templating/src/main/js/bridge-react - JS module establishing a standard entrypoint to React logic.
- spring-boot-starter - integration with Spring Boot including
ScriptProvider
for extracting JS source file from external server usingWebClient
.
Example projects
There are several example projects in the /examples
subfolder showing how to integrate Graal templating into your application.
hello-world-js
- processing templates located on the classpathhello-world-react
- processing templates hosted on an external HTTP serverhello-world-ts
- rendering component markup with JS renderer on GraalVMspring-boot
- treating component inner content as pebble template
Contributing
Code of conduct
License
This project is licensed under Apache License, Version 2.0.