here is the html generated by the rhtml:

      <div id="cart">
        <div class='cart-title'>Your Cart</div>

<table>

    <tr>

    <td>2×</td>
    <td>Pragmatic Project Automation</td>
    <td class="item-price">$59.96</td>
    <td>
       <a href="/store/remove_from_cart/2" onclick="new Ajax.Request('/
store/remove_from_cart/2', {asynchronous:true, evalScripts:true});
return false;">-</a> 

       <a href="/store/add_to_cart/2" onclick="new Ajax.Request('/
store/add_to_cart/2', {asynchronous:true, evalScripts:true}); return
false;">+</a>
    </td>
  </tr>
    <tr>

    <td>1×</td>
    <td>Pragmatic Version Control</td>
    <td class="item-price">$28.50</td>
    <td>

       <a href="/store/remove_from_cart/3" onclick="new Ajax.Request('/
store/remove_from_cart/3', {asynchronous:true, evalScripts:true});
return false;">-</a> 
       <a href="/store/add_to_cart/3" onclick="new Ajax.Request('/
store/add_to_cart/3', {asynchronous:true, evalScripts:true}); return
false;">+</a>
    </td>
  </tr>
    <tr>

    <td>1×</td>
    <td>Pragmatic Unit Testing (C#)</td>
    <td class="item-price">$27.75</td>

    <td>
       <a href="/store/remove_from_cart/4" onclick="new Ajax.Request('/
store/remove_from_cart/4', {asynchronous:true, evalScripts:true});
return false;">-</a> 
       <a href="/store/add_to_cart/4" onclick="new Ajax.Request('/
store/add_to_cart/4', {asynchronous:true, evalScripts:true}); return
false;">+</a>
    </td>
  </tr>
  <tr class='total-line'>
    <td colspan='2'>Total</td>
    <td class='total-cell'>

      $116.21
    </td>
    <td>
    </td>
  </tr>
</table>
<form method="post" action="/store/checkout" class="button-
to"><div><input type="submit" value="Checkout" /></div></form>
<form action="/store/empty_cart" method="post" onsubmit="new
Ajax.Request('/store/empty_cart', {asynchronous:true,
evalScripts:true, parameters:Form.serialize(this)}); return false;">
  <input name="commit" type="submit" value="Empty cart" />
</form>

      </div>

here it is with haml:

      <div id="cart">
        <div class='cart-title'>Your Cart</div>

<table>
  <tr>
    <td>
      3
      ×
    </td>
    <td>
      Pragmatic Project Automation
    </td>
    <td class='item-price'>

      $89.94
    </td>
    <td>
      <a href="/store/remove_from_cart/2" onclick="new Ajax.Request('/
store/remove_from_cart/2', {asynchronous:true, evalScripts:true});
return false;">-</a>
       
      <a href="/store/add_to_cart/2" onclick="new Ajax.Request('/store/
add_to_cart/2', {asynchronous:true, evalScripts:true}); return false;">
+</a>
    </td>
  </tr>

  <tr>
    <td>
      1
      ×
    </td>
    <td>
      Pragmatic Version Control
    </td>
    <td class='item-price'>
      $28.50
    </td>

    <td>
      <a href="/store/remove_from_cart/3" onclick="new Ajax.Request('/
store/remove_from_cart/3', {asynchronous:true, evalScripts:true});
return false;">-</a>
       
      <a href="/store/add_to_cart/3" onclick="new Ajax.Request('/store/
add_to_cart/3', {asynchronous:true, evalScripts:true}); return false;">
+</a>
    </td>
  </tr>
  <tr>
    <td>

      2
      ×
    </td>
    <td>
      Pragmatic Unit Testing (C#)
    </td>
    <td class='item-price'>
      $55.50
    </td>
    <td>

      <a href="/store/remove_from_cart/4" onclick="new Ajax.Request('/
store/remove_from_cart/4', {asynchronous:true, evalScripts:true});
return false;">-</a>
       
      <a href="/store/add_to_cart/4" onclick="new Ajax.Request('/store/
add_to_cart/4', {asynchronous:true, evalScripts:true}); return false;">
+</a>
    </td>
  </tr>
  <tr class='total-line'>
    <td colspan='2'>Total</td>

    <td class='total-cell'>
      $173.94
    </td>
    <td>
    </td>
  </tr>
</table>
<form method="post" action="/store/checkout" class="button-
to"><div><input type="submit" value="Checkout" /></div></form>
<form action="/store/empty_cart" method="post" onsubmit="new
Ajax.Request('/store/empty_cart', {asynchronous:true,
evalScripts:true, parameters:Form.serialize(this)}); return false;">
  <input name="commit" type="submit" value="Empty cart" />
</form>

      </div>

-Don

" value="Empty cart" />
</form>

      </div>

-Don


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to