Composing screens

Blocks inside blocks: helpers take blocks, and blocks call more helpers.

A helper with a block renders its component around whatever the block outputs. Inside the block you write normal ERB, including other Componeer helpers, partials or your own markup. That is how screens are built: a stack of cards, a card holding a table, a table cell holding a status_pill.

Para hoje

Sexta, 20 de novembro

2
Revisar roteiro do vídeo 2 · Lançar o canal Atrasada há 1 dia
Emitir invoice de novembro · Faturar o cliente exemplo

Quests ativas

QuestProgresso
Lançar o canal5 de 13
Faturar o cliente exemploContínua

Slots

Some components have named areas besides their main content: a card's actions and footer, a page header's filters and tabs. The block receives the component; call with_<slot> on it to fill a slot. A slot's block can itself call helpers.

Slots that hold a single helper read well as one-liners: header.with_action { button "Sincronizar", variant: :primary }.

Lançar o canal até março

Canal Exemplo · prazo 31/03/2027

Ativa

Ter o canal no ar com 8 vídeos publicados e uma rotina semanal de produção.

Layout blocks

stack piles blocks vertically with a 16px gap; cluster lines up inline items that wrap. Both take gap: and any HTML attribute.

Bloco A

Stack empilha blocos com 16px entre eles.

Bloco B

Três