mitsuhiko shares
16 years ago
a cool way how to use Jinja2 macros to partially replace markup: paste.pocoo.org/show/134...
mitsuhiko
16 years ago
if the request to the vote url comes from AJAX, the macro is rendered and sent back, otherwise a redirect to the page
mitsuhiko
16 years ago
the rest is jquery magic
立即下載