javascript

Purpose

Allows inclusion of javascript libraries and scripts as well a shorthand for inline Javascript

Examples

// actually imports '/app/js/myscript.js'
<g:javascript src="myscript.js" />

// imports all the necessary js for the scriptaculous library <g:javascript library="scripaculous" />

<g:javascript>alert('hello')</g:javascript>

Description

Attributes

Source

Show Source