b:format.capitalize

<b:format.capitalize>...</b:format.capitalize>

Converts the first characters in a word to upper case
<b:format.capitalize> converts word's first character to upper case. This is very handy for example when dealing with name information.

Examples

Capitalizing a string

This example makes sure that all the names start with a capital letter.
<h1>Participating in the event</h1>
<ul>
   <b:get from="participant" name="person" parent="<b:page.metadata.path/>">
      <li>
         <b:format.capitalize><b:person.name/></b:format.capitalize>
      </li>
   </b:get>
</ul>
HTML source output
<h1>Participating in the event</h1>
<ul>
   <li>Henrik Rydberg</li>
   <li>John Appleseed</li>
</ul>