Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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