return dictionary as html formated atributes.
(**kwargs)
| 53 | return '<%s %s>%s</%s>' % (name, atributes(**atr), content, name) |
| 54 | |
| 55 | def atributes(**kwargs): |
| 56 | """return dictionary as html formated atributes.""" |
| 57 | return join(['%s="%s"' % (lower(k),v) for k, v in kwargs.iteritems()]) |
| 58 | |
| 59 | def ul(cls, lst): |
| 60 | """create html ul from list with class cls""" |