title: Is it possible to pass parameters to layout in thymeleaf layout-dialect?
body: <p>I have a common layout which, by default, should display a (basic) search form on each page excepted the search page itself which contains a (more advanced) search form already.</p>
  
  <p>Is it possible to pass a parameter from my search page to the layout in order to not display the default search form?</p>
  
  <p>Here is an example of what I would like to do:</p>
  
  <p><em>layout.html</em></p>
  
  <pre><code>&lt;html layout:???="displayShowForm = true"&gt;
      ...
      &lt;form action="search" th:if="${displayShowForm}"&gt;...&lt;/form&gt;
      ...
      &lt;div layout:fragment="content"&gt;...&lt;/div&gt;
  </code></pre>
  
  <p><em>home.html</em> (show the default search form)</p>
  
  <pre><code>&lt;html layout:decorator="layout"&gt;
      ...
      &lt;div layout:fragment="content"&gt;...&lt;/div&gt;
  </code></pre>
  
  <p><em>search.html</em> (hide the default search form)</p>
  
  <pre><code>&lt;html layout:decorator="layout (displayShowForm = false)"&gt;
      ...
      &lt;div layout:fragment="content"&gt;
          ...
          &lt;form action="advancedSearch"&gt;...&lt;/form&gt;
  </code></pre>