Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Archie3d/juce_litehtml
Litehtml HTML/CSS rendering engine with JUCE backend.
https://github.com/Archie3d/juce_litehtml
Last synced: 3 months ago
JSON representation
Litehtml HTML/CSS rendering engine with JUCE backend.
- Host: GitHub
- URL: https://github.com/Archie3d/juce_litehtml
- Owner: Archie3d
- Created: 2022-05-05T20:18:43.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-15T16:21:41.000Z (over 2 years ago)
- Last Synced: 2024-05-12T05:32:55.695Z (6 months ago)
- Language: C
- Size: 3.2 MB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-juce - juce_litehtml
README
# JUCE litehtml
This is a JUCE module that provides integration of the [litehtml](https://github.com/litehtml/litehtml) HTML/CSS rendering engine with JUCE backend.![screenshot](doc/screenshot.png)
The web pages can be loaded from network (via `http://` or `https://`), but also locally, from a file (using `file://` scheme) or JUCE application or plugin binary resources (`res://` scheme).
This module also attempts to add JavaScript support on top of the litehtml using [quickjs](https://github.com/bellard/quickjs) interpreter.
Litehtml offers rather limited capabilities, but it is good enough to render rich documents, which can be useful, for example, to show help pages or documentation within JUCE applications or plugins.
> This project is WIP.
## Compilation
This module must be used via CMake (cannot be used from Projuces because of additional targets that need to be compiled).
Add [JUCE](https://github.com/juce-framework/JUCE) and [juce_litehtml](https://github.com/Archie3d/juce_litehtml) submodules to your project, and then link additional `juce::juce_litehtml` library on your target:
```CMake
add_subdirectory(JUCE)
add_subdirectory(juce_litehtml)target_link_libraries(${TARGET}
PRIVATE
juce::juce_core
juce::juce_data_structures
juce::juce_gui_basicsjuce::juce_litehtml
juce::juce_recommended_config_flags
)
```[See the test project](https://github.com/Archie3d/juce_litehtml_test) for an example.