Seven Things


Lift supports designer friendly templates. This means that all templates... all pages on your site can be valid Html5 or XHTML. Your designers can edit the same pages that your developers edit. The designers do not have to learn any tag libraries or any other language. The dynamic content is based on Lift's snippets and the snippet invocation is done via specially css class names. Here's the source for this page:
Listing: /templates.html
<!DOCTYPE html>
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type">
    <title>Designer Friendly Templates</title>
  </head>
  <!-- The class attribute tells Lift that the 
       actual template starts with the element
       with the id main -->
  <body class="lift:content_id=main">

    <!--
       A class attribute with the prefix lift: 
       invokes a snippet that surrounds this
       <div> with the default chrome for the site
       and inserts the <div> at the "content"
       marker in the template
       -->
    <div id="main" class="lift:surround?with=default;at=content">
      <div>
        <big>
          <big>
            Lift supports designer friendly templates.
            This means that all templates... all pages
            on your site can be valid Html5 or XHTML.
            Your designers can edit the same pages that
            your developers edit.  The designers do not
            have to learn any tag libraries or any other
            language.  The dynamic content is based on 
            Lift's snippets and the snippet invocation
            is done via specially css class names.
            Here's the source for this page:
          </big>
        </big>
      </div>

      <!-- Invoke the ShowCode snippet which 
           shows the source for the designated page
           and generates a link to the GitHub repository
           for this project -->
      <pre class="lift:ShowCode?name=/templates.html">view code</pre>

      <div>
        <big>
          <big>
            The benefits to your team include:
            <ul>
              <li>A single place for all your team members
              to keep their code</li>
              <li>No need for developers to "shred" the
                pages designers give them or otherwise
                keep pages in sync</li>
              <li>Pages can always be validated </li>
              <li>No additional learning for the designers</li>
            </ul>
          </big>
        </big>
      </div>

    </div>
  </body>
</html>
The benefits to your team include:
  • A single place for all your team members to keep their code
  • No need for developers to "shred" the pages designers give them or otherwise keep pages in sync
  • Pages can always be validated
  • No additional learning for the designers

Lift is Copyright 2007-2011 WorldWide Conferencing, LLC. Distributed under an Apache 2.0 License.