create html ul from list with class cls
(lst, type_, **kwargs)
| 64 | return result |
| 65 | |
| 66 | def List(lst, type_, **kwargs): |
| 67 | """create html ul from list with class cls""" |
| 68 | result = ['<%s %s>' % (type_, atributes(**kwargs))] |
| 69 | result += [(' '*4) + tag('li', elem) for elem in lst] |
| 70 | result += ['</%s>' % (type_)] |
| 71 | return result |
| 72 | |
| 73 | def classLink(className, string_): |
| 74 | """return copy of string with className replaced by HTML link to it.""" |
no test coverage detected