Difference between revisions of "Issuepedia:W3TPL/lib/fmt"

From Issuepedia
Jump to navigation Jump to search
(this should work better)
 
(echo, not echo now)
 
Line 4: Line 4:
 
   <let name=doStripe not copy=doStripe />
 
   <let name=doStripe not copy=doStripe />
 
   <if flag=$doStripe>
 
   <if flag=$doStripe>
     <echo now>style="background: #eee;"</echo>
+
     <echo>style="background: #eee;"</echo>
 
   </if>
 
   </if>
 
</func>
 
</func>

Latest revision as of 12:12, 3 June 2013

fmt.ledger.row.tag()

Call this function after the |- in each row of a table to make a striped "ledger"-style table. Later, we may want a way to include other style attributes -- either by passing them to the function or by having another function which just returns the style code (" background: #eee;").
> function fmt.ledger.row.tag() <= ()