From d6b960f0e13e3b6333e19aafee5995467ee926e2 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Wed, 2 Jul 2014 10:34:17 +0200 Subject: [PATCH] README: document the blurp block tag --- README | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README b/README index eeecbde..77b37f8 100644 --- a/README +++ b/README @@ -274,8 +274,31 @@ Template:: Template tag ============ +render_blurp +------------ + You can render a block in any template using the template tag ``render_blurp``: {% load blurp_tags %} {% render_blurp "student_table" %} + +blurp block tag +--------------- + +You can insert the context generated by a blurp in your current template to do +the templating yourself, beware that you will lose ajaxification and dynamic +reloading if you use this tag as we cannot send your inline template to the +ajax endpoint:: + + {% load blurp_tags %} + + {% blurp "student_table %} + {% for row in students %} + + {{ row.name }} + {{ row.age }} + {{ row.birthdate }} + + {% endfor %} + {% endblurp %}