Write a ‘title’ helper 

[% CALL set_title("Edit user details") %]

<div class="container">

  <div class="row">

    <div class="span3">

      <form class="form-inline" method="post" action="/user/edit/[% id %]">
        <fieldset>
          <legend>Edit User</legend>

            <div class="control-group">
              <label for="username">Username</label><br>
              <input type="text" class="input-large" id="username" name="username"><br>
            </div>
            ...