You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No CREATE for building blocks and page templates #1941
Building blocks and page templates can be listed and described (LIST BUILDING BLOCKS, DESCRIBE BUILDING BLOCK, USE BUILDING BLOCK), but not created or changed. A design system done headless (shared page parts that developers drag in from the toolbox, and page templates for new pages) therefore cannot be written with MDL, and has to fall back to snippets.
Proposal
CREATE [OR MODIFY] BUILDING BLOCK Module.Name [FOLDER '...'] (Category: '...', ...) { <widgets> }, with the same widget syntax as CREATE SNIPPET, and DESCRIBE printing it in that form.
CREATE BUILDING BLOCK MyFirstModule.BB_Card { DYNAMICTEXT t (Content: 'x') };
-> line 1:7 no viable alternative at input 'createbuilding'
CREATE PAGE TEMPLATE MyFirstModule.PT_Form (Layout: Atlas_Core.Atlas_Default) { DYNAMICTEXT t (Content: 'x') };
-> parsed as CREATE PAGE named "TEMPLATE": mismatched input 'MyFirstModule' expecting {FOLDER, '('}
Related: #1886 (building blocks cannot be altered).
Activity