README: add documentation about the template tag
This commit is contained in:
parent
169c3ed842
commit
455a162057
13
README
13
README
|
@ -270,3 +270,16 @@ Template::
|
|||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
Template tag
|
||||
============
|
||||
|
||||
You can render a block in any template using the template tag ``render_blurp``:
|
||||
|
||||
{% load blurp_tags %}
|
||||
|
||||
{% render_blurp "student_table" %}
|
||||
|
||||
Beware that it will not work with renderes doing any access to the
|
||||
``placeholder`` or ``instance`` parameter of their render method as those
|
||||
object are not available in a random template.
|
||||
|
|
Reference in New Issue