Groovy Server Pages (GSP) snippets for use with Groovy on Grails.
Snippets included
dollarsign
: ${}gactionsubmit
: Generates a submit button that maps to a specific action",gcheckbox
: Generates a checkbox form fieldcollect
: Uses the Groovy JDK collect method to transform objects in a list by a expressiongcreatelink
: Creates a link that can be used in a href, JavaScript, AJAX call, etcgeach
: Uses the Groovy JDK each method to iterate the specified listgelse
: The logical else taggelseif
: The logical elseif taggelseifenv
: The logical elseif tag for an environmentgfield
: Creates an input field where the user can enter datagfindall
: Uses the Groovy JDK findAll method to find objects that match the expressiongfor
: Uses the each tag with a range of numbersgform
: Creates a form that submits to a controller and actionghid
: Creates a input of type hiddengif
: The logical if tag to switch on an expressiongifenv
: The logical if tag to switch on an expression and/or current environmentgimg
: Renders an HTML img tag for an image resourcegjs
: Includes inline JavaScriptgjslib
: Includes a JavaScript librarygjssrc
: Includes a JavaScript scriptglink
: Creates an html anchor tag with the href set based on the specified parametersglinkm
: Creates an html anchor tag for the specified named mappinggmsg
: Resolves a message from the given code and args (if any)gpwd
: Creates a input of type 'password'gradio
: Generates a radio buttongradiogroup
: Generates radio button groupsgrender
: Applies a template against a modelgselect
: Generates HTML select for the given listgselectbind
: Generates HTML select for the given list with key-value bindinggset
: Sets the value of a variable accessible with the GSP pagegs
: "${}\gtext
: Creates an input of type 'text'gtextarea
: Creates a HTML text area elementgwhile
: Executes a condition in a loop until the condition returns false
Snippets are made available only in .gsp
files
Currently no settings are available.
None
Initial release of GSP snippets extension.
Enjoy!