Skip to content
This repository was archived by the owner on Jan 30, 2024. It is now read-only.
This repository was archived by the owner on Jan 30, 2024. It is now read-only.

Declarative & programmatic layout/style #14

@bergos

Description

@bergos

This issue is a follow-up to the discussion started in the Forms vs Views issue.

The discussion started based on an example of aligning two fields horizontally instead of vertically. That leads to the general topic of declarative vs. programmatic layout and style.

Declarative

Use case: Explorative, using ontology information and show/edit data aligned to the rest of an application.

Pro:

  • Declarative layout/style information could be included in the ontology
  • Easier for applications to combine their layout/style with the one defined in the shapes
  • Easy to use outside HTML rendering engines
  • Already partially defined in SHACL (sh:order, sh:group)

Con:

  • Not an option for pixel-perfect results
  • Requires to draw a clear line on what will be included/excluded so we don't reimplement HTML

Programmatic

Use case: Application development, mainly based on custom-tailored shapes for a specific application/context.

Pro:

  • Full control for pixel-perfect results
  • Definitions in the shapes are closer to the rest of the application (JS variable/function names, CSS selectors, ...)

Con:

  • Difficult to use definitions and components outside the application for which the shapes have been designed for
  • Hard to extract layout/style information in other environments

Based on the background of the participants, I expect the task force is interested in both options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions