Is there some way to use {% block... %} in link_to(). I am trying to use template inheritence. The below code adds literal {% block indexlink %}{% endblock %} into the link
<li class="previous">{{ link_to("{% block indexlink %}{% endblock %}", "Go Back") }}</li>
If I remove the double quotes then the compiler gives an error - unexpected token {%. If I remove {% blockand %} totally then it says Undefined variable: indexlink. Is there some way I can specify the link using a {% block... variable %}option.
Thanks