django-lastfm / docs / ref / templatetags.txt

Full commit
.. ref-templatetags:

Template Tags

Django-lastfm contains only one template tag in :mod:`lastfm.templatetags.lastfm_widget` that is used to load a context object
with all necessary data.

Usage of the template tag

.. automodule:: lastfm.templatetags.lastfm_widget


As for every template tag, there is a compilation function (:func:`get_lastfm_widget`) and a renderer (:class:`LastfmWidgetNode`) that do all the work.

.. autoclass:: LastfmWidgetNode

.. autofunction:: get_lastfm_widget