Lift beginner's questions...

View: New views
1 Messages — Rating Filter:   Alert me  

Lift beginner's questions...

by jhonig :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have been struggling to create a very simple webpage with lift, but
nothing seems to work as expected.   I got some information from
http://wiki.github.com/dpp/liftweb/about-lift-tags, but I can't get it to
work.  The contents of my main index file is like this:

<lift:surround with="tent">
  <head>
      <title>My website title</title>
  </head>
  <!-- the four parts of a page -->
  <lift:with-param name="image">
      Here comes the image
  </lift:with-param>
  <lift:with-param name="footnote">
      Here comes the footnote
  </lift:with-param>
  <lift:with-param name="context">
      Here comes the context
  </lift:with-param>
  <lift:with-param name="control">
      Here comes the control
  </lift:with-param>

</lift:surround>

The "tent" file is as follows:

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:lift="http://liftweb.net/">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <meta name="description" content="" />
    <meta name="keywords" content="" />

    <!-- site title will be supplied by content -->

    <lift:CSS.blueprint />
    <lift:CSS.fancyType />

    <!-- script and style deleted -->
  </head>
  <body>
    <div class="container">
      <div class="column span-17 last">
        <lift:bind name="image" />
      </div>
      <hr />
      <div class="column span-17 last">
        <lift:bind name="context" />
      </div>
      <hr />
      <div class="column span-17 last">
        <lift:bind name="control" />
      </div>
      <hr />
      <div class="column span-17 last">
        <lift:bind name="footnote" />
      </div>
    </div>
  </body>
</html>

My problems are:

1) with-param seems to be deprecated, but "bind-at" doesn't do anything at
    all!  Nothing is being bound!

2) the head-propagation doesn't work, no title shown.

What am I doing wrong???  Any help appreciated!

Job Honig