branch | tls-sprint |
changeset 845 | 6103d0f55a0b |
child 846 | e449f1da7d09 |
844:8ab6f64c3750 | 845:6103d0f55a0b |
---|---|
1 from logilab.mtconverter import html_escape |
|
2 from cubicweb.common.uilib import simple_sgml_tag |
|
3 class tag(object): |
|
4 def __init__(self, name): |
|
5 self.name = name |
|
6 |
|
7 def __call__(self, __content=None, **attrs): |
|
8 return simple_sgml_tag(self.name, __content, **attrs) |
|
9 |
|
10 input = tag('input') |
|
11 textarea = tag('textarea') |
|
12 a = tag('a') |
|
13 span = tag('span') |
|
14 img = tag('img') |