开发者

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

开发者 https://www.devze.com 2023-03-25 09:59 出处:网络
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

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

精彩评论

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