lck.django 0.8.5 documentation

This Page

lck.django.score.templatetags.lckd_score

A set of string-related filters.

Functions

get_score_value(parser, token)

Gets the score value for the given params and populates the template context with a variable containing that value, whose name is defined by the ‘as’ clause.

Syntax:

{% get_score_value for [object] as [varname]  %}
{% get_score_value for [app].[model] [object_id] as [varname]  %}

Example usage:

{% get_score_value for event as score_value %}
{% get_score_value for calendar.event event.id as score_value %}
{% get_score_value for calendar.event 17 as score_value %}
render_score(parser, token)

Render the current score along with the plus/minus controls through the score/show.html template.

Syntax:

{% render_score for [object] %}
{% render_score for [app].[model] [object_id] %}

Example usage:

{% render_score for comment %}