DioxusLabs / DioxusLabs/blitz

Question about the viability of blitz for my use case

Open
#223 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Rust
Stars
4.1k
Forks
203
Avg merge
8h 58m
Merged PRs (30d)
112

Description

I am writing a Wayland lock screen and want to allow the user to style it using html and css. I've been looking for some library which can render that html for me and this seems like this could be what I am looking for. All I want is to render some local html into an in-memory buffer, I would then do the job of drawing the buffer onto a surface. I do want some dynamic rendering for things like button highlighting and drawing text which is being input by the user.

Am I correct in understanding that blitz might be a good fit for this use case?

Is there a particularly good example I could look at using blitz in a similar fashion? Specifically showing headless rendering into a buffer. Most examples seem to use Dioxus?

I know that a lot of features are missing but I'm hoping I could get by with what's there. All I would expect to need are some boxes, some text, a form, a button, and maybe an image, and the css to style it of course.

Other alternatives I've found are:

* embedding a browser (chromium) or using a webview (WebKitGTK), but it seems a little bloated for my use case as I don't want any networking or other browser features.
* litehtml but I would then need to implement the drawing on my end and it would be nice to avoid that.

If you don't think blitz might be a good fit, do you have any thoughts on what might be?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.