This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class MyTagLib { | |
| static namespace = "my" | |
| def input = { attrs, body -> | |
| //some business logic here | |
| //you can access grails tags in the namespace g | |
| out << g.textField(attrs, body) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def grailsApplication = Holders.getGrailsApplication() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def version = grailsApplication.metadata['app.version'] |
NewerOlder