7575public class JinjavaInterpreter implements PyishSerializable {
7676 public static final String IGNORED_OUTPUT_FROM_EXTENDS_NOTE =
7777 "ignored_output_from_extends" ;
78+ public static final long NO_LIMIT = -1 ;
79+
7880 private final Multimap <String , BlockInfo > blocks = ArrayListMultimap .create ();
7981 private final LinkedList <Node > extendParentRoots = new LinkedList <>();
8082 private final Map <String , RevertibleObject > revertibleObjects = new HashMap <>();
@@ -94,7 +96,6 @@ public class JinjavaInterpreter implements PyishSerializable {
9496 private final Set <Integer > errorSet = new HashSet <>();
9597
9698 private static final int MAX_ERROR_SIZE = 100 ;
97- private static final long NO_LIMIT = -1 ;
9899
99100 public JinjavaInterpreter (
100101 Jinjava application ,
@@ -260,7 +261,11 @@ public String renderFlat(String template) {
260261 * @return rendered result
261262 */
262263 public String render (String template ) {
263- return render (parse (template ), true );
264+ return render (template , NO_LIMIT );
265+ }
266+
267+ public String render (String template , long renderLimit ) {
268+ return render (parse (template ), true , renderLimit );
264269 }
265270
266271 /**
@@ -287,7 +292,7 @@ public String render(Node root, boolean processExtendRoots) {
287292 }
288293
289294 /**
290- * Rendee the given root node to a certain limit, processing extend parents.
295+ * Render the given root node to a certain limit, processing extend parents.
291296 * @param root
292297 * node to render
293298 * @param renderLimit
0 commit comments