Skip to content
blizz edited this page Sep 12, 2010 · 5 revisions

polymorhic: <card for=“[ModelName]”>
table{border:1px solid black}.
|.Attribute|.Description|.Default Value|.Example|

Parameter Tag Description Default Content
default <card> card <header>
header <header:>
heading <h4>   <a><name>;

Here is an example from the Agility Tutorial on how to enhance the functionality of a default tag


<extend tag="card" for="Task"> <old-card merge> <append-body:> <div class="users"> Assigned users: <repeat:users join=", "><a/></repeat><else>None</else>

Here is what an autogenerated default tag looks like


<def tag="card" for="Project"> <card class="project" param="default" merge> <header: param> <h4 param="heading"><a><name/></a></h4>

This inherits (right word?) from base polymorphic card tag defined in rapid_generics.dryml


<def tag="card" polymorphic> <div class="card" param="default" merge-attrs> <header param if-content/> <div param="body" if="&all_parameters[:body]"/>
Clone this wiki locally