Skip to content

Commit

Permalink
docs: Document that lookPath caches its results
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Mar 26, 2023
1 parent bd551ab commit 841b947
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ an empty string.
environment and the filesystem at the moment the template is executed. Exercise
caution when using it in your templates.

The return value of the first successful call to `lookPath` is cached, and
future calls to `lookPath` for the same *file* will return this path.

!!! example

```
Expand Down

0 comments on commit 841b947

Please sign in to comment.