Form rendering & rendering overall #17
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Rendering
There are only two places where rendering can occur:
Current implementation renders on backend, which is inherently wrong, because backend cannot know about the representation that the frontend uses. Instead, all the components in the system must agree on internal representation of the form. Then two rendering engines might exist:
Requirements
The internal representation will be a linearized collection of elements. If the elements could not form a linearized structure, it would be non-deterministic for the user, which obviously make no sense.
The internal structure could be marked in HTML
Compiler
The renderer is basically a compiler that compiles XML definition to HTML code. The JS will need a registry of custom elements.