keepthatworktoyourself / wombat

Not another website builder. Public repo — raise issues, request features, get help.
2 stars 0 forks source link

Generate otter block refs from attributes on templates #54

Open bhallstein opened 2 years ago

bhallstein commented 2 years ago

Idea is to instead of defining blocks def objects, decorate templates with attributes that map JSX elements to editable fields, generating an otter block and enabling the template to be autofilled from otter post data.

e.g. Perhaps something like:

<div>
  <LeadingIcon otter-prop-icon="leading_icon" icon={leading_icon}></LeadingIcon>
  <a href="..." otter-prop-href="href" otter-content="btn_text">{btn_text}</a>
</div>
bhallstein commented 1 year ago

@pjrundle Is this still relevant, do you think?