Skip to content

Commit

Permalink
Add explanatory comment about caching
Browse files Browse the repository at this point in the history
  • Loading branch information
nebrelbug committed Sep 16, 2020
1 parent fa40fc3 commit aec8d91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deno_dist/file-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function getPath(path: string, options: EtaConfig) {
// We can cache the result to avoid expensive
// file operations.
var pathOptions = JSON.stringify({
filename: options.filename,
filename: options.filename, // filename of the template which called includeFile()
path: path,
root: options.root,
views: options.views,
Expand Down
2 changes: 1 addition & 1 deletion src/file-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function getPath(path: string, options: EtaConfig) {
// We can cache the result to avoid expensive
// file operations.
var pathOptions = JSON.stringify({
filename: options.filename,
filename: options.filename, // filename of the template which called includeFile()
path: path,
root: options.root,
views: options.views
Expand Down

0 comments on commit aec8d91

Please sign in to comment.