@app.before_request
def before_request():
lang = request.args.get('lang')
app.register_blueprint(main, url_prefix='main/<lang>/')
function toster (){
for (i=0; i<=20; i++){
$.get('a#'+i,function(data){
$('tabe').append('<tr><td><a class="link" title="'+data.text()+'"></a></td></tr>')
})
}
}
$("tabe").on( "click", "a.link", function() {
console.log( $( this ).index() );
});