Custom bricks
Discover
Section titled “Discover”dart run stackchain listScaffold
Section titled “Scaffold”dart run stackchain new my_generatorCreates .stackchain/bricks/my_generator/.
Template syntax
Section titled “Template syntax”Files end in .tpl and support:
| Token | Meaning |
|---|---|
{{name}} |
Raw name |
{{name.snakeCase}} |
snake_case |
{{name.pascalCase}} |
PascalCase |
{{name.camelCase}} |
camelCase |
{{name.paramCase}} |
param-case |
{{name.titleCase}} |
Title Case |
{{name.constantCase}} |
CONSTANT_CASE |
# / ^ sections |
Conditional blocks |
Pass extras:
dart run stackchain make page foo -V title=FooNote on bricks/feature
Section titled “Note on bricks/feature”The package ships a GetX-style bricks/feature brick, but make feature / feature use the vertical slice generator, not that brick.