Skip to content

Instantly share code, notes, and snippets.

@mtcmorris
Created September 5, 2011 06:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mtcmorris/1194204 to your computer and use it in GitHub Desktop.
Save mtcmorris/1194204 to your computer and use it in GitHub Desktop.
Mustaches for everyone!!
<% if current_user_is_editor? %>
<%= content_for :footer do %>
<script type="text/javascript">
$(document).ready(function() {
$("article.vcard img").each(function(index, img) {
$(img).attr("src", "http://mustachify.me/?src=" + "http://theconversation.edu.au" + $(img).attr("src"));
});
});
</script>
<% end %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment