Skip to content

Rodsevich/mason

 
 

Repository files navigation

mason logo

mason coverage License: MIT Powered by Mason


A collection of packages that enable developers to create and consume reusable templates called bricks.


Note

This is a masonex repository, a fork originally developed by Jules and Antigravity. It extends the original mason with advanced features.

Masonex File Generation

masonex provides a more robust and flexible template generation process, including support for binary data and advanced template syntax.

Key Features

  1. Binary Data Protection: Detects binary variables (List<int>) and uses temporary markers to prevent corruption during the rendering process.
  2. Extended Syntax: Supports pipes ({{ var | pascalCase }}), dot notation ({{ var.camelCase() }}), and alternative closing tags ({{%name}}).
  3. Advanced Engine: Uses mustachex for enhanced Lambda and Partial support.
  4. Binary Restoration: Re-injects original raw bytes after rendering to ensure binary files (like PNGs) remain uncorrupted.

Mason Demo

Packages

Package Pub
mason pub package
mason_api pub package
mason_cli pub package
mason_logger pub package

Quick Start

# 🎯 Activate from https://pub.dev
dart pub global activate mason_cli

# 🚀 Initialize mason
mason init

# 📦 Install your first brick
mason add hello

# 🧱 Use your first brick
mason make hello

Documentation

View the full documentation here.

Video Tutorials

Package of the Week by Flutter Observable Flutter: Building a Mason brick by Flutter
mason (Package of the Week) Observable Flutter: Building a Mason brick
Meet Mason: Flutter Vikings 2022 by Flutter Community Felix Angelov Demos Mason by Very Good Ventures
Meet Mason: Intro to Templating and Custom Code Generation Mason Video Tutorial

Badge

Add a markdown badge to indicate your project is powered by masonPowered by Mason

[![Powered by Mason](https://img.shields.io/endpoint?url=https%3A%2F%2Ftinyurl.com%2Fmason-badge)](https://github.com/felangel/mason)

About

A CLI which allows developers to create and consume reusable templates called bricks.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Dart 97.8%
  • TypeScript 1.8%
  • Other 0.4%