Hi all;

Could a Hobo expert explain to me why I need the ":" on the "if" block 
within this tag defintion? 

Without the ":", I get the error, "mixed parameter tags and non-parameter 
tags", but I don't understand why the "if" tag has to be called as a 
parameter tag? My definition was working without the ":" on the "if" tag *up 
until the point* that I added the <empty-message> parameter tag. Then, I 
discovered I had to add ":" to the "if", but I can't fathom why!

<def tag="amalgamations-collection" attrs="forprint">
  <collection>
    <if: test="&forprint">
      <card class="amalgamation" merge>
        <header/>
        <body>
          <strong><view:name/></strong>
          <br/><view:date_amalgamated/>
          <br/><br/>
        </body>
      </card>
    </if:>
    <else:>
      <card class="amalgamation" merge>
        <body>
          <b>Amalgamated on:&nbsp;&nbsp;</b><view:date_amalgamated/>
        </body>
      </card>
    </else:>   
    
    <empty-message:><t 
key="amalgamation.collection.empty_message"/></empty-message:>
    
  </collection>
</def>

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/hobousers/-/Q1p6dFBtd0VPTXNK.
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/hobousers?hl=en.

Reply via email to