mason 0.0.1-dev.4 mason: ^0.0.1-dev.4 copied to clipboard
A Dart template generator which helps teams generate files quickly and consistently.
⛏️ mason #
A Dart template generator which helps teams generate files quickly and consistently.
Activate Mason #
pub global activate mason
Define Template YAML #
greetings.yaml
name: greetings
description: A Simple Greetings Template
files:
- from: greetings.md # template file (input)
to: GREETINGS.md # generated file (output)
vars:
- name
Define Template File(s) #
greetings.md
# Greetings {{name}}!
Build #
mason build -t greetings.yaml -- --name Felix
The above command should generate GREETINGS.md
file with the following content:
# Greetings Felix!
Usage #
$ mason --help
⛏️ mason • lay the foundation!
Usage: mason <command> [<args>]
Commands:
build build new component from a template
Arguments:
-t, --template template yaml path
-h, --help Prints usage information.
--version Print the current version.