(Quick Reference)



The create-tag-lib command creates a tag library and associated unit test for the given base name.


grails create-tag-lib org.bookstore.book


Creates a tag library for the give base name. For example for a base name org.bookstore.book a tag library called BookTagLib will be created in the grails-app/taglib/org/bookstore directory.

A tag library is a "view helper" that in MVC terms helps the view with rendering by providing a set of reusable tags. For more information on tags refer to the section on Tag Libraries in the user guide.

Note that this command is just for convenience and you can also create controllers in your favourite text editor or IDE if you choose.


grails create-tag-lib [name]

Fired Events:

  • CreatedFile - When the tag library has been created