Skip to content

Instantly share code, notes, and snippets.

@vilmibm
Created January 22, 2012 21:19
Show Gist options
  • Save vilmibm/1658874 to your computer and use it in GitHub Desktop.
Save vilmibm/1658874 to your computer and use it in GitHub Desktop.
marimo template tag
{% marimo request_widget medley_comments 12 434 page=4 %}
<!-- VVVVVVVVVVVVVVVV renders VVVVVVVVVVVVVVVVVVVV -->
<div id="some_randomly_generated_id"></div>
<script>
marimo.add_widget({
widget_prototype:'request_widget',
widget_handler:'medley_comments',
id:'some_randomly_generated_id',
args: [12,434],
kwargs: {page:4}
});
</script>
<!-- With luck, you'll have a fancy comments widget appear on the page without further ado. -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment