Example #1
0
 def render_link(self, node):
     javascript.fill_attr(node, u'onclick', dict(
         what = json,
     ), pattern=_re.compile(ur'@(?P<name>[^@]+)@'))
Example #2
0
 def render_link(self, node):
     javascript.fill_attr(node, u'onclick', dict(
         what = json,
     ), pattern=ur'@(?P<name>[^@]+)@', as_json=False)
Example #3
0
 def render_link(self, node):
     javascript.fill_attr(node, u'onclick', dict(
         what = u'Andr\xe9',
     ))
Example #4
0
 def render_link(self, node):
     javascript.fill_attr(node, u'onclick', dict(
         what = json,
     ), as_json=False)
Example #5
0
 def render_button(self, node):
     javascript.fill_attr(node, 'onclick', dict(
         alert=u'"Hey André! ---]]>"'
     ))