�法</p>
<br>
<h3 id="actions">2、控制器<code>../myapp/app/controllers</code></h3>

<pre><code>package controllers

import "github.com/revel/revel"

type <a>App</a> struct {
  *revel.Controller
}

func (c App) <a>Index()</a> revel.Result {
  return c.Render()
}</code></pre>
<ul>

  <li>App.Index调用了c.Render()，该方法查找视图目录中与方法名同名的模板App/Index.html，渲染后返回给浏览器.</li>
</ul>
<br>

<h3 id="templates">3、视图（Templates）<code>../myapp/app/views</