Skip to content

Instantly share code, notes, and snippets.

@sergiomichels
Created October 4, 2012 02:46
Show Gist options
  • Save sergiomichels/3831182 to your computer and use it in GitHub Desktop.
Save sergiomichels/3831182 to your computer and use it in GitHub Desktop.
TagLib that uses Grails tags
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)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment