fcurella/django-social-share

get current link

karinakozarova opened this issue · 1 comments

Can jinja templates be used for sharing? For example I want when I do this:

{% post_to_facebook "{{ event.slug }}" "Post to Facebook!" %}

the "{{ event.slug }}" to not be put as text in the url but as the value it holds

Hi @karinakozarova

Try not quoting the event.slug variable, this way:

{% post_to_facebook event.slug "Post to Facebook!" %}