Help for this page

Select Code to Download


  1. or download this
    <%filter Div($class)>
            <div class="<% $class %>">
                    <% $yield->() %>
            </div>
    </%filter>
    
  2. or download this
    % $.Div("row") {{
       1 The "$yield->()" method returns everything from here (free text)
    ...
                    2 even could have another nested filter, etc...
    %       }}
    % }}
    
  3. or download this
     
    <div class="row">
        1 The "$yield->()" method returns everything from here (free text)
    ...
                2 even could have another nested filter, etc...   
       </div>
    </div>
    
  4. or download this
    : macro div -> ($cls,$str) {
    <div class="<: $cls :>">
            <: $str :>
    </div>
    : }
    
  5. or download this
    : div("row",
    :       div("col",
    :               "my string"
    :       )
    : )
    
  6. or download this
    :       div("col",
                   nested
                   here
    :       )
    : )