gsp - Difference between view and template in Grails -


in grails app, trying figure out when use view , when use template gsp. there obvious reasons? or come down reuse?

basically template (reusable) part of view. useful splitting view logical parts and/or reusing same code different views.

so, if you're rendering whole page - use view. if need small part - use template.

see docs views , templates - http://grails.org/doc/latest/guide/theweblayer.html#viewsandtemplates


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -