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

Feature request: type checked view references #4

Closed
davidkron opened this issue Apr 12, 2017 · 2 comments
Closed

Feature request: type checked view references #4

davidkron opened this issue Apr 12, 2017 · 2 comments

Comments

@davidkron
Copy link
Contributor

Hello

As I understand, the next Grails version 3.3 will have support for type checked GSPs, which I think is a great feature and I can't wait to use it!

I don't know if this is possible from a technical point of view, but I think this "type checked views" idea could be even better, if it could expand throughout the whole framework and not only the view layer: My idea would be to also provide type checked references to views. Currently, views in controllers are rendered by providing a string in the render method, like render(view: 'myView'). It would be great if such calls could also be used in a type checked manner (find missing views before runtime).

I have seen something like this implemented in the Play framework:
Content html = views.html.Application.index.render(customer, orders);

I don't know if this is possible, but at least for me, this would be a very useful addition.

@lhotari
Copy link
Contributor

lhotari commented Apr 22, 2017

@davidkron Thanks for the feature request. I think it would be very useful in combination of being able to pass type-checked parameters for the view.

@davidkron
Copy link
Contributor Author

Closing stale issue.

@davidkron davidkron closed this as not planned Won't fix, can't repro, duplicate, stale Aug 12, 2022
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

2 participants