Grails - GSP Tag - layoutHead

Tag - layoutHead

Description

Used in layouts to output the contents of the head tag of the decorated page. Equivalent to the SiteMesh <decorator:head /> tag.

Parameters

None

Examples

Example decorated page:

<html>
   <head>
        <meta name="layout" content="myLayout" />
        <script type="text/javascript" src="myscript.js"></script>
   </head>
   <body>Page to be decorated</body>
</html>

Example decorator layout:

<html>
   <head>
        <script type="text/javascript" src="global.js"></script
        <g:layoutHead />
   </head>
   <body><g:layoutBody /></body>
</html>

Results in:

<html>
   <head>
        <script type="text/javascript" src="global.js"></script>
        <script type="text/javascript" src="myscript.js"></script>
   </head>
   <body>Page to be decorated</body>
</html>