@@ -777,6 +777,9 @@ def render_string_iter(
777
777
Creates a `Template` from the given ``template_string`` and renders it using the provided
778
778
``context``. Returns a generator that yields the rendered output.
779
779
780
+ If `cache` is ``True``, the template is saved and reused on next calls, even with different
781
+ contexts.
782
+
780
783
:param dict context: Dictionary containing the context for the template
781
784
:param int chunk_size: Size of the chunks to be yielded. If ``None``, the generator yields
782
785
the template in chunks sized specifically for the given template
@@ -817,6 +820,9 @@ def render_string(
817
820
Creates a `Template` from the given ``template_string`` and renders it using the provided
818
821
``context``. Returns the rendered output as a string.
819
822
823
+ If `cache` is ``True``, the template is saved and reused on next calls, even with different
824
+ contexts.
825
+
820
826
:param dict context: Dictionary containing the context for the template
821
827
:param bool cache: When ``True``, the template is saved and reused on next calls.
822
828
@@ -849,6 +855,9 @@ def render_template_iter(
849
855
Creates a `FileTemplate` from the given ``template_path`` and renders it using the provided
850
856
``context``. Returns a generator that yields the rendered output.
851
857
858
+ If `cache` is ``True``, the template is saved and reused on next calls, even with different
859
+ contexts.
860
+
852
861
:param dict context: Dictionary containing the context for the template
853
862
:param int chunk_size: Size of the chunks to be yielded. If ``None``, the generator yields
854
863
the template in chunks sized specifically for the given template
@@ -889,6 +898,9 @@ def render_template(
889
898
Creates a `FileTemplate` from the given ``template_path`` and renders it using the provided
890
899
``context``. Returns the rendered output as a string.
891
900
901
+ If `cache` is ``True``, the template is saved and reused on next calls, even with different
902
+ contexts.
903
+
892
904
:param dict context: Dictionary containing the context for the template
893
905
:param bool cache: When ``True``, the template is saved and reused on next calls.
894
906
0 commit comments