WebgoGo 实现的 Web 框架
webgo,a golang web framework for vectors ERP system
框架提供关于 Http 服务器端最精简逻辑实现,理论上可以兼容大部分其他框架中间件(需要小量修改)。
服务器目录树 App │ ├─module 应用模块目录 │ ├─web 模块目录 │ │ ├─static 静态资源目录 │ │ │ ├─uploads 上传根目录 │ │ │ ├─lib 资源库文件目录(常用作前端框架库) │ │ │ └─src 资源文件 │ │ │ ├─js 资源Js文件目录 │ │ │ ├─img 资源图片文件目录 │ │ │ └─css 资源Css文件 │ │ ├─model 模型目录 │ │ ├─template 视图文件目录 │ │ ├─data 数据目录 │ │ ├─model 模型目录 │ │ └─controller.go 控制器 │ │ │ ├─base 模块目录 │ │ │ └─... 扩展的可装卸功能模块或插件 │ ├─static 静态资源目录 │ ├─uploads 上传根目录 │ ├─lib 资源库文件目录(常用作前端框架库) │ └─src 资源文件 │ ├─js 资源Js文件目录 │ ├─img 资源图片文件目录 │ └─css 资源Css文件 ├─template 视图文件目录 ├─deploy 部署文件目录 │ ├─main.go 主文件 └─main.ini 配置文件
hello world demo
package main import ( "fmt" "github.com/VectorsOrigin/web" ) type ( ctrls struct { } ) func (self ctrls) hello_world(hd *web.THandler) { hd.RespondString("Hello Webgo World!") } func main() { srv := web.NewServer("") srv.Get("/hello", ctrls.hello_world) srv.Get("/hello2", func(c *web.THandler) { c.RespondString("Hello, World") return }) srv.Get("/hello3", func(c *web.THandler) { c.RenderTemplate("hello_world.html", map[string]interface{}{"static": "youpath"}) fmt.Println("b", c.Route.FilePath) return }) srv.Listen(":8080") }
评论
TurismoJava的Web框架
turismo是一个类似Sinatra的Java的微型Web框架。示例代码:publicclassAppRoutesextendsRoutesList{ protectedvoidmap(){
TurismoJava的Web框架
0
YesodHaskell的web框架
Yesod是Haskell的Web框架用于开发类型安全、RESTful、高性能的Web应用。安装方法:cabalinstallyesod-platform
YesodHaskell的web框架
0
GolangerGo 的 Web 框架
Golanger是一个轻量级的Web应用框架,使用Go语言编写。Golanger框架主要实现了MVC模式(三层架构模式)(Model-View-Controller),它是软件工程中的一种软件架构模式
GolangerGo 的 Web 框架
0
VoltRuby 的 Web 框架
Volt是一个Ruby的Web框架,使得你的Ruby可在服务器和客户端上运行。当用户与页面交互时,DOM自动更新。页面状态可以存储在URL中。如果用户直接点击URL,则HTML将首先在服务器上呈现,以
VoltRuby 的 Web 框架
0
LapisLua 的 Web 框架
Lapis是一个用来构建Web一个用的框架,使用MoonScript或者Lua开发,运行于OpenResty。示例代码:lapis = require "lapis"class extends lap
LapisLua 的 Web 框架
0
LiftScala 的 Web 框架
Lift也叫LiftWeb,是一种新的Web应用程序框架。它是一种在Scala编程语言上构建的可伸缩框架。它非常适合ApacheGeronimo这样的可伸缩应用服务器,尤其是在Scala编译为与Jav
LiftScala 的 Web 框架
0