(Quick Reference)

layoutTitle

Purpose

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

Examples

Example decorated page:

<html>
   <head>
      <meta name="layout" content="myLayout" />
      <title>Hello World!</title>
      <script src="myscript.js"></script>
   </head>
   <body>Page to be decorated</body>
</html>

Example decorator layout:

<html>
   <head>
      <title><g:layoutTitle default="Some Title" /></title>
      <script src="global.js"></script>
      <g:layoutHead />
   </head>
   <body><g:layoutBody /></body>
</html>

Results in:

<html>
   <head>
        <title>Hello World!</title>
        <script src="global.js"></script>
        <script src="myscript.js"></script>
   </head>
   <body>Page to be decorated</body>
</html>