~/talk

Meet Mason: Intro to Templating and Custom Code Generation

Talkat Flutter Vikings 2022 · 2022-08-31..09-01· [developer-experience]
slides:none on file

Mason is a set of four Dart packages (including mason_cli) that generate code from reusable templates called bricks using Mustache; the CLI installs bricks (mason get), scaffolds (mason make), and locks versions, with a CI flag (--set-exit-if-changed) to fail when generated files drift. Bricks support pre/post-gen hooks, lambdas for casing, partials, and can publish to BrickHub (over 100 bricks, ~53,000 downloads; some bricks hit ~4,000). Hooks run custom Dart code and run successfully in examples shown.

AI-written summary · about

  1. 0:00Introduction to Mason
  2. 4:24Mason core components
  3. 5:49Installing and initializing Mason
  4. 8:14Fetching and listing bricks
  5. 9:58Generating code with Mason make
  6. 13:49Creating custom bricks
  7. 17:42Brick.yaml structure
  8. 19:25Mustache templating basics
  9. 21:36Advanced templating features
  10. 24:02Understanding hooks
  11. 26:49Brick management with BrickHub
  12. 29:00Adding bricks from sources
  13. 32:09Global bricks and VS Code integration
  14. 34:13Team workflow with Mason
  15. 35:17Using Mason in custom tooling
  16. 36:41Mason roadmap and future
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.