示例#1
0
文件: js_fill_attr.py 项目: AvdN/tdi
 def render_link(self, node):
     javascript.fill_attr(node, u'onclick', dict(
         what = json,
     ), pattern=_re.compile(ur'@(?P<name>[^@]+)@'))
示例#2
0
文件: js_fill_attr.py 项目: AvdN/tdi
 def render_link(self, node):
     javascript.fill_attr(node, u'onclick', dict(
         what = json,
     ), pattern=ur'@(?P<name>[^@]+)@', as_json=False)
示例#3
0
文件: js_fill_attr.py 项目: AvdN/tdi
 def render_link(self, node):
     javascript.fill_attr(node, u'onclick', dict(
         what = u'Andr\xe9',
     ))
示例#4
0
文件: js_fill_attr.py 项目: AvdN/tdi
 def render_link(self, node):
     javascript.fill_attr(node, u'onclick', dict(
         what = json,
     ), as_json=False)
示例#5
0
文件: js_tools_fill.py 项目: AvdN/tdi
 def render_button(self, node):
     javascript.fill_attr(node, 'onclick', dict(
         alert=u'"Hey André! ---]]>"'
     ))