开发者

How does Grails render views when the files don't exist in the `grails-app/views` directory?

If one doesn't have the standard create.gsp, edit.gsp, list.gsp, and show.gsp in the grails-app/vie开发者_StackOverflow中文版ws/controllerName directory, how is Grails rendering the pages? I didn't have these in this default location, and Grails was still rendering the default pages.


The standard (i.e. scaffolded) views are provided by Grails and automatically rendered if you haven't created your own (or generated them) in grails-app/views.

If you want to see exactly what's being rendered, you can:

grails install-templates

Running this will put the views into src/templates so that you can view and edit them.

Docs for install-templates.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜