https://github.com/wttech/graal-templating
Javascript rendering on GraalVM
https://github.com/wttech/graal-templating
Last synced: 26 days ago
JSON representation
Javascript rendering on GraalVM
- Host: GitHub
- URL: https://github.com/wttech/graal-templating
- Owner: wttech
- License: apache-2.0
- Created: 2021-03-12T15:16:03.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-26T13:47:09.000Z (about 5 years ago)
- Last Synced: 2025-10-03T03:13:02.285Z (6 months ago)
- Language: Java
- Size: 447 KB
- Stars: 1
- Watchers: 5
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Graal Javascript Renderer

[](https://javadoc.io/doc/io.wttech.graal.templating/templating)


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.
[Reference documentation](https://wttech.github.io/graal-templating)
## 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 using `WebClient`.
## 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 classpath
* `hello-world-react` - processing templates hosted on an external HTTP server
* `hello-world-ts` - rendering component markup with JS renderer on GraalVM
* `spring-boot` - treating component inner content as pebble template
## Contributing
[Contributing rules](CONTRIBUTING.md)
## Code of conduct
[Code of conduct](CODE_OF_CONDUCT.md)
## License
This project is licensed under [Apache License, Version 2.0](LICENSE).