Skip to content

oxUnd/martini-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

Martini Middleware

fis

detail see https://github.com/xiangshouding/martini-fis-app

get

$ go get github.com/xiangshouding/martini-middleware/fis

use

package main

import (
	"github.com/go-martini/martini"
	"github.com/xiangshouding/martini-middleware/fis"
)

func main() {
	m := martini.Classic()
	m.Use(martini.Static("src/app/public"))
	m.Use(fis.Renderer(fis.Options{
		Directory: "src/app/template",
		Extensions: []string {".tpl"},
	}))

	m.Get("/", func (r fis.Render) {
		r.HTML(200, "index", "")
	})
	m.Run()
}

About

Martini Middleware

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages