Hello! I’ll try to explain what I’m looking for: I sometimes have to write simple web pages (not just text, also buttons and video players and so on), but I really really hate writing html code. What I’m used to is QML, which I like a lot, because of the ease of placing objects exactly where I need using the anchors and the Layout objects. What I’m looking for is a language or something with a similar syntax, that can then be “built” to plain HTML/CSS/JS. Is there something like this? I know I can compile Qt/QML for webassembly, but I’m having huge amounts of problems, and also I’d like to have the possibility to have a plain HTML result, not necessary bind to the server side.
thanks in advance!!
Libreoffice has an HTML mode and also you can take any document and save as HTML.
Another way is use Markdown.
Another is to use a template editor like Bluefish. This is coding HTML but more easily.
Exactly what I feel about HTML after using QML.
Although there are already comments with good libs, you could also look into services like Weebly.
I’m not 100% on what you’re after. But in a past life I set up an XSL stylesheet to transform an XML file into a website via Php. it’s feasible you could set something similar up. XSL/XPath as a query language is really slick and similar to CSS, as templating language it’s not amazing but might suit your case.
Somehow it’s still going so it really shows that technical debt is forever.
First search result I got was https://github.com/pureqml/qmlcore Never used it, but seems good.
What kind of page are you trying to write? Blog? Single Page App? Landing page?
If you’re already trying to tackle QML, you might as well learn Slint. It’s much easier IMO and can be compiled from Rust or C++. They even have a live editor. Check out their demos.
Make keep an eye out for MakePad. They’re not yet ready for public use I think, but their demo is incredible, IMO.
Why is there a license at the bottom of you amazing comment?
AI training
There are a whole lot of “templating” libraries which do what you’re asking for. I have used Hiccup for Clojure and Giraffe for F# successfully, and you can probably find others for languages you already know.