@@ -340,6 +340,11 @@ public Handlebars() {
340340
341341 /**
342342 * Compile the resource located at the given uri.
343+ * The implementation uses a cache for previously compiled Templates. By default,
344+ * if the resource has been compiled previously, and no changes have occurred
345+ * since in the resource, compilation will be skipped and the previously created
346+ * Template will be returned. You can set an alternate cache implementation
347+ * using {@link #with(TemplateCache cache) with}.
343348 *
344349 * @param location The resource's location. Required.
345350 * @return A compiled template.
@@ -351,6 +356,11 @@ public Template compile(final String location) throws IOException {
351356
352357 /**
353358 * Compile the resource located at the given uri.
359+ * The implementation uses a cache for previously compiled Templates. By default,
360+ * if the resource has been compiled previously, and no changes have occurred
361+ * since in the resource, compilation will be skipped and the previously created
362+ * Template will be returned. You can set an alternate cache implementation
363+ * using {@link #with(TemplateCache cache) with}.
354364 *
355365 * @param location The resource's location. Required.
356366 * @param startDelimiter The start delimiter. Required.
@@ -365,6 +375,10 @@ public Template compile(final String location, final String startDelimiter,
365375
366376 /**
367377 * Compile a handlebars template.
378+ * The implementation uses a cache for previously compiled Templates. By default,
379+ * if same input string has been compiled previously, compilation will be skipped
380+ * and the previously created Template will be returned. You can set an alternate
381+ * cache implementation using {@link #with(TemplateCache cache) with}.
368382 *
369383 * @param input The handlebars input. Required.
370384 * @return A compiled template.
@@ -376,6 +390,10 @@ public Template compileInline(final String input) throws IOException {
376390
377391 /**
378392 * Compile a handlebars template.
393+ * The implementation uses a cache for previously compiled Templates. By default,
394+ * if same input string has been compiled previously, compilation will be skipped
395+ * and the previously created Template will be returned. You can set an alternate
396+ * cache implementation using {@link #with(TemplateCache cache) with}.
379397 *
380398 * @param input The input text. Required.
381399 * @param startDelimiter The start delimiter. Required.
@@ -393,6 +411,11 @@ public Template compileInline(final String input, final String startDelimiter,
393411
394412 /**
395413 * Compile a handlebars template.
414+ * The implementation uses a cache for previously compiled Templates. By default,
415+ * if the resource has been compiled previously, and no changes have occurred
416+ * since in the resource, compilation will be skipped and the previously created
417+ * Template will be returned. You can set an alternate cache implementation
418+ * using {@link #with(TemplateCache cache) with}.
396419 *
397420 * @param source The template source. Required.
398421 * @return A handlebars template.
@@ -404,6 +427,11 @@ public Template compile(final TemplateSource source) throws IOException {
404427
405428 /**
406429 * Compile a handlebars template.
430+ * The implementation uses a cache for previously compiled Templates. By default,
431+ * if the resource has been compiled previously, and no changes have occurred
432+ * since in the resource, compilation will be skipped and the previously created
433+ * Template will be returned. You can set an alternate cache implementation
434+ * using {@link #with(TemplateCache cache) with}.
407435 *
408436 * @param source The template source. Required.
409437 * @param startDelimiter The start delimiter. Required.
0 commit comments