Muil

Muil

  • Docs
  • Configurations
  • API
  • Blog

›Getting Started

Getting Started

  • Quick Start Guide
  • Slow Start Guide
  • Run Templates Viewer
  • Write Template
  • Styling Template
  • Solutions
  • Why Muil

Configurations

  • CLI
  • Custom Webpack Config
  • Custom Babel Config

API

  • Authorization
  • Sending Email
  • Generating PDF
  • Generating Image
  • Generating HTML

Email Limitations

  • Fonts
  • SVG

Components

  • Intro
  • Grid
  • Style
  • Alignment
  • Typography
  • Button
  • Callout
  • Menu
  • Spacer
  • Wrapper
  • Charts
  • PDF Page

Slow Start Guide

Manual Installation

To get start with Muil you will need:

  1. Run this line inside you root directory:

    npm install --dev @muil/viewer
    

    or

    yarn add --dev @muil/viewer
    

    In case you use Create React App you will to install also babel-loader


  2. Add these scripts to package.json:

    "scripts": {
        ...
        "muil": "muil-viewer",
        "muil-cli": "muil-cli"
    },
    
  3. Add templates folder in your root directory

    root directory
    ├───src
    │   ├───components
    │   │   ├───Component1.js
    │   │   ├───...
    │   │   └───ComponentN.js
    └───templates
        ├───Template1.template.js
        └───Template2.template.js
    

Run Templates Viewer

See Run Templates Viewer.

← Quick Start GuideRun Templates Viewer →
  • Manual Installation
  • Run Templates Viewer
Copyright © 2021 muil