# From a block to the screen ## The path of a view ```trebol-ui view [ title "Cog & Chain" count: text muted "No bikes in yet." button "Book in" [count/text: "One bike in." count/role: 'success] ] ``` Three things happen between that block and what you see. 1. **`layout` reads the block.** It is Trebol code, in `src/ui/ui.trb`, written with `parse`. Each word of style (`title`, `text`, `button`) starts a face, and the words, strings and blocks after it are read as its modifiers. Styles give each face its starting fields. The result is a tree of **faces**: objects with fields such as `style`, `text`, `role`, `data` and `pane` (the children), as in Red. `layout` is pure: it touches no DOM, so it runs the same in Node, in the tests. 2. **`show` draws the tree.** It is a native of the browser host (`browser.ts`) that makes one DOM node per face, with semantic elements: a `button` is a `