def include_jquery(version = '1.10.1'):
if request.is_secure:
protocol = 'https'
else:
protocol = 'http'
return Markup('<script src="%s://code.jquery.com/jquery-%s.min.js"></script>' % (protocol, version))
文章目录