Markup
Use a markup card to display raw HTML content.
Check the full API at ui.markup_card.
danger
Prefer native Wave components whenever possible and use the raw HTML only as a last resort.
menu = '''
<ol>
<li>Spam</li>
<li>Ham</li>
<li>Eggs</li>
</ol>
'''
q.page['example'] = ui.markup_card(box='1 1 2 2', title='Menu', content=menu)
Without outer card spacing
Set the compact
attribute to True
to remove the outer spacing.
menu = '''
<p>
<span>Spam</span>
<span>Ham</span>
<span>Eggs</span>
</p>
'''
q.page['example'] = ui.markup_card(box='1 1 2 2', title='Menu', content=menu, compact=True)