Skip to content

Instantly share code, notes, and snippets.

@fadur
Last active December 20, 2015 16:49
Show Gist options
  • Save fadur/6164472 to your computer and use it in GitHub Desktop.
Save fadur/6164472 to your computer and use it in GitHub Desktop.
<script type="text/javascript" charset="utf-8">
TheSocialDigits.config({
key: "1234567890",
templateFormatters: {my_link: function(absolute_url) {
return "href='"+absolute_url+"'"
}
},
});
</script>
<script type="text/template" class="prod_template"
<a {{my_link absolute_url}}>
<p id='name'>{{name}}</p>
<img src="{{mellem}}" alt="" />
{{#if old_price}}
<span class="price_before" style="text-decoration:line-through;">Kr {{old_price}}</span>
{{else}}
<span class="price_before">&nbsp</span>
{{/if }}
<span class="price">Kr {{price}}</span>
<button class="button orange_btn buy_btn" style="margin-top: -5px;">Køb </button>
<span class="dlv-txt" >Leveringstid: {{delivery}}</span>
</a>
</script>
Uncaught Error: Parse error on line 5:
... <a {{my_link="" absolute_url}}="
-----------------------^
Expecting 'CLOSE', 'DATA', 'STRING', 'INTEGER', 'BOOLEAN', 'ID', 'SEP', got 'EQUALS'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment