Coverage for khufu/tables/td.py : 82%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1# encoding: utf-8
2from . import *
4def td(
5 content=False,
6 color=False,
7 span=False):
8 """
9 *Generate a table data cell - TBS style*
11 **Key Arguments**
13 - ``content`` -- the content
14 - ``color`` -- [ sucess | error | warning | info ]
17 **Return**
19 - ``td`` -- the table data cell
21 """
22 if color is False:
23 color = ""
24 if content is False:
25 content = ""
26 if span is False:
27 span = ""
28 else:
29 span = "span%(span)s" % locals()
31 td = """<td class="%(color)s %(span)s">%(content)s</td>""" % locals()
33 return td