I’ve had a look around WeWeb and created a basic website. While WeWeb is great for quickly throwing something together, there seems to be an awful lot of unnecessary code output for basic things. I guess this has been mentioned before but I can’t easily find definitive answers.
Here’s a simple example:
The problems I have with this code:
- Creating a link with rich text editor doesn’t add basic styles
- You have to style separately which outputs
<u>
and<span>
classes and inline styles. - The link also is not very easy to edit after it’s created.
- The
<p>
wrapper has an awful lot of styling that I’d prefer to have in:root
- It’s all wrapped in an unnecessary
<div>
- Even tabular data isn’t formatted properly (it’s all
<div>
s and<p>
s)
I could go on, but the basic gist is there’s a whole lot of redundant or incorrect code that I’d like to be trimmed down and somewhat semantically correct. I do understand that to make it “no-code” extra html is required, especially for things like the “Kanban” widget.
The point of using WeWeb is that people who don’t want to mess around with javascript can use it in a no-code way, but I’d also like to keep it cleaner for the next project.
General
- Is the only option for simpler code
Embeds->HTML
? - How do I enforce WeWeb to use a default css file, without too much overriding of your defaults? (ideally, zero overriding)
- I’d rather use plain old css and classes in developer mode.
- In my experience so far, the “Custom CSS” box at the bottom of the editor hasn’t really worked for me. It doesn’t seem to override the selected block.
- For an example: if I wanted a plain HTML form, with zero styling — then add in whatever variables, data, and workflows, css etc — is that something easily achievable?
- Can I achieve this kind of thing without having to mess around with Vue components?
Markdown
I can see two options for Markdown. The first is basic which has a very small field to enter in your Markdown, and isn’t very usable.
The second is input which I don’t really understand. In the documentation there’s two boxes, an input and an output. Do you have to link the two somehow?
Could an admin use Markdown in place of the drag and drop interface for simple HTML? How do you get read-only content?
Summing up …
I know a little javascript but I’d rather not have to get my hands dirty and learn a whole new framework (Vue) to achieve something that should be simple. I’m also still trying to wrap my head around building interactive things with WeWeb.
For the simple stuff though, I feel that unless you’re using custom components (e.g: form container), the above should be something that’s easily achievable?
I apologise for all the questions, but it’d be helpful to have answers in one place so that others might benefit too.
What suggestions do you have for best practices?
Thanks.