书栈网 · BookStack 本次搜索耗时 0.016 秒,为您找到 77 个相关结果.
  • 模板

    模板 渲染上下文 模板功能 eq set append field option radio nl2br pluralize raw Including 温馨提示 自定义模板函数 模板 Revel 使用 Go 模板 , 在下面两个目录中查找模板: 应用程序的 views 目录 (包括所有的子目录) Revel的 te...
  • 概要

    模块 启用一个模块 模块 模块是一些包,可以集成到Revel程序中。Revel允许多个Revel程序(或第三方代码)共享控制器、模板、资源和其他代码。 模块中文件的布局应当与Revel应用程序文件结构一致。“托管”应用程序会按以下方式将它们合并: module/app/views 的所有模板,会被添加到模板加载器的搜索路径中 module/a...
  • Websockets

    Simple Websocket Example Revel provides support for Websockets . To handle a Websocket connection: Add a route using the WS method. Add an action that accepts a revel.ServerWe...
  • Code Organization

    Default Layout app/ directory conf/ directory messages/ directory public/ directory Revel requires itself and the user application to be installed into a GOPATH layout as pre...
  • 拦截器

    拦截器 拦截时间 结果 例如 函数拦截器 方法拦截器 拦截器 “拦截器”是框架执行一个方法之前或之后被调用的函数。它允许 面向方面编程 , 作用如下: 请求记录 错误处理 状态保持在 Revel 中, 有两种形式的拦截器: 函数拦截器:请参考 InterceptorFunc 接口. 不能挂接到某个特定的控制器方法 可以应用到...
  • Request Parameters & JSON

    Request Parameters URL path Query Vars Form Vars File Uploads Combined Params JSON Data Action arguments Binder Booleans Slices Ordered: Unordered: Structs Maps Maps ...
  • Results & Response

    Setting the Status Code / Content Type Controller.Render() Controller.RenderFile() / Controller.RenderFileName() Controller.RenderJSON() / Controller.RenderXML() Redirect() Red...
  • app.conf

    app.conf 概述 自定义属性 内建属性 应用程序设置 app.name app.secret HTTP settings http.port http.addr harness.port http.ssl http.sslcert http.sslkey 响应结果 results.chunked results.pretty ...
  • Controllers Overview

    Extending the Controller GoDoc Reference GitHub Labels The revel.Controller is the context for a single request and controls the incoming Request stuff and the Response ba...
  • Versions

    A great deal has been written about Go’s package versioning situation (by@nathany in particular). However, at this time, there is no community standardfor managing package versio...