MCPcopy Create free account
hub / github.com/ActiveState/code / atributes

Function atributes

recipes/Python/502222_Creating_javclass/recipe-502222.py:55–57  ·  view source on GitHub ↗

return dictionary as html formated atributes.

(**kwargs)

Source from the content-addressed store, hash-verified

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

Callers 2

tagFunction · 0.85
ListFunction · 0.85

Calls 3

lowerFunction · 0.85
joinFunction · 0.50
iteritemsMethod · 0.45

Tested by

no test coverage detected