Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task: Document CompileStatic support in GSPs #6

Open
lhotari opened this issue Apr 22, 2017 · 0 comments
Open

Task: Document CompileStatic support in GSPs #6

lhotari opened this issue Apr 22, 2017 · 0 comments

Comments

@lhotari
Copy link
Contributor

lhotari commented Apr 22, 2017

There is CompileStatic support in the code base, but it hasn't been documented.
The features have been tested in this test class:
https://github.com/grails/grails-gsp/blob/master/grails-gsp/src/test/groovy/org/grails/gsp/GspCompileStaticSpec.groovy

Features

  • defining types for model attributes. this turns on CompileStatic mode for GSPs implicitly.
  • model attributes can have default values
  • possibility to turn off CompileStatic mode while keeping model type definitions
  • tag library prefixes have to be defined with taglibs when it's not g' or tmpl`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant