-
-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Labels
docsImprovements or additions to documentationImprovements or additions to documentationneeds-helpExtra attention is neededExtra attention is needed
Description
Current documentation states that the function:
"Takes an optional content and an optional template name and returns the contents of a file."
It does not return "the contents of a file". It returns the first argument (if not empty or undef) otherwise it uses the second argument as the file name of a template, and returns the evaluated template. If both arguments are empty or undef, the function returns undef.
The example show that one intended use case is to use the result as the content attribute of a file type. Maybe this is why the documentation ended up like it is?
Metadata
Metadata
Assignees
Labels
docsImprovements or additions to documentationImprovements or additions to documentationneeds-helpExtra attention is neededExtra attention is needed