<commit_before><a href="https://travis-ci.org/kataras/go-template"><img src="https://img.shields.io/travis/kataras/go-template.svg?style=flat-square" alt="Build Status"></a>
<a href="https://github.com/kataras/go-template/blob/master/LICENSE"><img src="https://img.shields.io/badge/%20license-MIT%20%20License%20-E91E63.svg?style=flat-square" alt="License"></a>
<a href="https://github.com/kataras/go-template/releases"><img src="https://img.shields.io/badge/%20release%20-%20v0.0.1-blue.svg?style=flat-square" alt="Releases"></a>
<a href="#docs"><img src="https://img.shields.io/badge/%20docs-reference-5272B4.svg?style=flat-square" alt="Read me docs"></a>
<a href="https://kataras.rocket.chat/channel/go-template"><img src="https://img.shields.io/badge/%20community-chat-00BCD4.svg?style=flat-square" alt="Build Status"></a>
<a href="https://golang.org"><img src="https://img.shields.io/badge/powered_by-Go-3362c2.svg?style=flat-square" alt="Built with GoLang"></a>
<a href="#"><img src="https://img.shields.io/badge/platform-Any--OS-yellow.svg?style=flat-square" alt="Platforms"></a>


The package go-template provides the easier way to use templates via template engine,
supports multiple template engines with different file extensions.

> It's a cross-framework means that it's 100% compatible with standard net/http, iris & fasthttp 


6 template engines are supported:
- standard html/template
- amber
- django
- handlebars
- pug(jade)
- markdown

It's already tested on production & used on [Iris](https://github.com/kataras/iris) and [Q](https://github.com/kataras/q) web framework.

Installation
------------
The only requirement is the [Go Programming Language](https://golang.org/dl), at least v1.7.

```bash
$ go get -u github.com/kataras/go-template
```


Examples
------------

Run them from the [/examples](https://github.com/kataras/go-websocket/tree/master/examples) folder.


Otherwise, you can view examples via Iris example's repository [here](https://github.com/iris-contrib/examples/tree/master/template_engines).

Read the [kataras/iris/template.go](https://github.com/kataras/iris/blob/master/template.go) to see how Iris uses this package.

Docs
------------

Read the [godocs](https://godoc.org/github.com/kataras/go-template).



**Quick look**

```go
// Package main uses the template.Mux here to simplify the steps
// and support of loading more than one template engine for a single app
// you can do the same things without the Mux, as you saw on the /html example folder
package main

import (
	"github.com/kataras/go-template"
	"github.com/kataras/go-template/amber"
	"github.com/kataras/go-template/html"
	"net/http"
)

type mypage struct {<commit_msg>Fix examples link on README<commit_after><a href="https://travis-ci.org/kataras/go-template"><img src="https://img.shields.io/travis/kataras/go-template.svg?style=flat-square" alt="Build Status"></a>
<a href="https://github.com/kataras/go-template/blob/master/LICENSE"><img src="https://img.shields.io/badge/%20license-MIT%20%20License%20-E91E63.svg?style=flat-square" alt="License"></a>
<a href="https://github.com/kataras/go-template/releases"><img src="https://img.shields.io/badge/%20release%20-%20v0.0.1-blue.svg?style=flat-square" alt="Releases"></a>
<a href="#docs"><img src="https://img.shields.io/badge/%20docs-reference-5272B4.svg?style=flat-square" alt="Read me docs"></a>
<a href="https://kataras.rocket.chat/channel/go-template"><img src="https://img.shields.io/badge/%20community-chat-00BCD4.svg?style=flat-square" alt="Build Status"></a>
<a href="https://golang.org"><img src="https://img.shields.io/badge/powered_by-Go-3362c2.svg?style=flat-square" alt="Built with GoLang"></a>
<a href="#"><img src="https://img.shields.io/badge/platform-Any--OS-yellow.svg?style=flat-square" alt="Platforms"></a>


The package go-template provides the easier way to use templates via template engine,
supports multiple template engines with different file extensions.

> It's a cross-framework means that it's 100% compatible with standard net/http, iris & fasthttp


6 template engines are supported:
- standard html/template
- amber
- django
- handlebars
- pug(jade)
- markdown

It's already tested on production & used on [Iris](https://github.com/kataras/iris) and [Q](https://github.com/kataras/q) web framework.

Installation
------------
The only requirement is the [Go Programming Language](https://golang.org/dl), at least v1.7.

```bash
$ go get -u github.com/kataras/go-template
```


Examples
------------

Run them from the [/examples](https://github.com/kataras/go-template/tree/master/examples) folder.


Otherwise, you can view examples via Iris example's repository [here](https://github.com/iris-contrib/examples/tree/master/template_engines).

Read the [kataras/iris/template.go](https://github.com/kataras/iris/blob/master/template.go) to see how Iris uses this package.

Docs
------------

Read the [godocs](https://godoc.org/github.com/kataras/go-template).



**Quick look**

```go
// Package main uses the template.Mux here to simplify the steps
// and support of loading more than one template engine for a single app
// you can do the same things without the Mux, as you saw on the /html example folder
package main

import (
	"github.com/kataras/go-template"
	"github.com/kataras/go-template/amber"
	"github.com/kataras/go-template/html"
	"net/http"
)

type mypage struct {
{'fraction_non_alphanumeric': 0.1744617668893838, 'fraction_numerical': 0.016332590942835932, 'mean_word_length': 4.498979591836735, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 47, 'https://': 38, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4057711', 'n_tokens_mistral': 1919, 'n_tokens_neox': 1800, 'n_words': 390}