mason 0.0.1-dev.2 copy "mason: ^0.0.1-dev.2" to clipboard
mason: ^0.0.1-dev.2 copied to clipboard

outdated

A Dart template generator which helps teams generate files quickly and consistently.

⛏️ mason #

pub 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 --template 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.
762
likes
0
pub points
97%
popularity

Publisher

verified publisherbrickhub.dev

A Dart template generator which helps teams generate files quickly and consistently.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

build_cli_annotations, checked_yaml, io, json_annotation, mustache_template, path, recase, yaml

More

Packages that depend on mason