Skip to content
Browse files

Updating docs and CGO build

  • Loading branch information...
Depado committed Oct 22, 2018
1 parent c935abf commit a2b1fb5663977f219fea3f08c73dce72e145f3c7
Showing with 59 additions and 3 deletions.
  1. +1 −1 Makefile
  2. +58 −2
@@ -11,7 +11,7 @@ help:

.PHONY: build
build: ## Build
go build -o $(BINARY) $(LDFLAGS)
CGO_ENABLED=0 go build -o $(BINARY) $(LDFLAGS)

.PHONY: test
test: ## Run the test suite
@@ -15,11 +15,15 @@ projectmpl

<h2 align="center">Project boilerplate engine<h2>
<img align="center" src="/assets/projectmpl.gif">

# Table of content
<!-- TOC -->

- [Table of content](#table-of-content)
- [Introduction](#introduction)
- [Features](#features)
- [Installation](#installation)
- [Download](#download)
- [Build from source](#build-from-source)
- [Usage](#usage)
- [Commands](#commands)
- [Keeping the template](#keeping-the-template)
@@ -39,6 +43,58 @@ projectmpl

<!-- /TOC -->

# Introduction

Projectmpl is a boilerplate engine. It allows you to quickly use boilerplate
templates and avoid copy-pasting chunks of code and snippets when you start a
new project.

## Features

- **No external dependencies**
Projectmpl is written in Go and thus is compiled to a static binary. Download
or build it and you're good to go.
- **Local or distant templates**
Either your template is a git repository, an archive stored on a distant
server or a local directory, projectmpl knows how to handle these.
- **Sweet output and prompts**
Thanks to the wonderful [survey](
library, the prompts are unified, can display an help text and support
- **Clean configuration files**
Projectmpl uses YAML for its configuration file formats, making them clean
and easy to read.
- **Powerful templating system**
Projectmpl uses [Go's template system](
to render the boilerplate.
- **Configuration override**
Need a different behavior or additional variables in a specific directory?
Just add another `.projectmpl.yml` file in there. You can even overwrite
- **Customizable templates**
Projectmpl allows fine-grained control over what needs to be done when
rendering the template. Just copy the file, ignore it, add conditonals based
on what the user answered, change the template delimiters…
- **After render commands**
Projectmpl allows you to define commands to be run once the boilerplate has
been rendered. _For security reasons, an explicit flag must be provided by the
user for the commands to be executed_

# Installation

## Download

You can grab the latest release from [the release page](

## Build from source

$ go get -u
$ cd $GOPATH/src/
$ dep ensure
$ make

# Usage

Projectmpl supports various provider to download the templates. It supports

0 comments on commit a2b1fb5

Please sign in to comment.
You can’t perform that action at this time.