Source

client_template_demo / template_demo / templates / home.mako

Full commit
Mike Bayer 93104c3 
Mike Bayer 7d76529 
Mike Bayer 93104c3 



















Mike Bayer 7d76529 
<%inherit file="layout.mako"/>

${display_api(True)}

<%def name="display_api(inline=False)">
    <p>
        API data - 
        % if inline:
            Displayed inline within a server-rendered page
        % else:
            Displayed via server-rendered ajax call
        % endif
    </p>
    <table>
        % for row in data:
            <tr>
                % for col in row:
                    <td>${col}</td>
                % endfor
            </tr>
        % endfor
    </table>
</%def>