Beispiel #1
0
def js_value(name, value):
    return mark_safe("<script type='text/javascript'> var %s = %s </script>" % (name, ui.as_json(value)))
Beispiel #2
0
def data_attr(name, value):
    return " %s='%s' " % (name, ui.as_json(value))
Beispiel #3
0
def json(values):
    return ui.as_json(values)
Beispiel #4
0
def js_value(name, value):
    return mark_safe("<script type='text/javascript'> var %s = %s </script>" %
                     (name, ui.as_json(value)))
Beispiel #5
0
def data_attr(name, value):
    return " %s='%s' " % (name, ui.as_json(value))
Beispiel #6
0
def json(values):
    return ui.as_json(values)