Jinja2 + jQuery tabs widget

JoeM josephmeiring at gmail.com
Wed Mar 14 15:16:35 CET 2012


Hi All,

     I'm having issues including a {block} of content from Jinja2
template into a jQueryUI tab. Does anyone know if such a thing is
possible? An example is below, which gives me a 500 error when loading
the page.

Thanks,
Joe



<script>
	$(function() {
		$( "#tabs" ).tabs();
	});
</script>

<div id="tabs">
	<ul>
		<li><a href="#tabs-Sum">Summary</a></li>
		<li><a href="#tabs-Maps">Maps</a></li>
		<li><a href="#tabs-Tables">Tables</a></li>
		<li><a href="#tabs-Ani">Animations</a></li>
		<li><a href="#tabs-Def">Definitions</a></li>
	</ul>
      <div id="tabs-Maps">
            {% block map_content %} {% endblock %}
      </div>
</div>






More information about the Python-list mailing list