Mdmg

A scaffold prototype code tool.

mdmg-demo

Install

bash cargo install mdmg

Debian

  1. Dowload a latest deb package from https://github.com/himanoa/mdmg/releases

dpkg -i mdmg_[version]_amd64.deb

macOS

Use homebrew

brew install -s himanoa/tap/mdmg

Features

Usage

  1. Current Directory move to your project directory.
  2. Execute mdmg setup.
  3. Create a file similar to the following .mdmg/${plan_name}.md.

~~~markdown

src/main.rs

rust fn main() -> Result<()> { unimplemented!() } ~~~

  1. Execute mdmg generate ${plan_name} foo.

Mdmg plan file format

Please write in the following format.

~~~markdown

file_name

file_body ~~~

The key points are as follows.

Template Engine

Mdmg plan markdown can be use handlebars template.

Functions and variables that can be used.

Supported variable

Supported functions

Implementation => https://github.com/himanoa/mdmg/blob/master/src/template.rs

Contributing

See https://github.com/himanoa/mdmg/blob/master/CONTRIBUTING.md