Skip to content

martini-contrib/web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

web.Context

hoisie web.go's Context for Martini.

API Reference

Description

web.Context provides a web.go compitable layer for reusing the code written with hoisie's web.go framework. Here compitable means we can use web.Context the same way as in hoisie's web.go but not the others.

Usage

package main

import (
   "github.com/codegangsta/martini"
   "github.com/codegangsta/martini-contrib/web"
 )

func main() {
  m := martini.Classic()
  m.Use(web.ContextWithCookieSecret(""))

  m.Post("/hello", func(ctx *web.Context){
  	  ctx.WriteString("Hello World!")
  })

  m.Run()
}

Authors

About

hoisie web.go's Context for Martini.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages