Permalink
Browse files

Update lib/dust-helpers.js

  • Loading branch information...
1 parent 42a381b commit bc0facf20b6b12dd586534e8b7be215e13acd1d0 @vybs vybs committed Sep 23, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/dust-helpers.js
View
5 lib/dust-helpers.js
@@ -99,11 +99,12 @@ var helpers = {
"" or '' will evaluate to false, boolean false, null, or undefined will evaluate to false,
numeric 0 evaluates to true, so does, string "0", string "null", string "undefined" and string "false".
Also note that empty array -> [] is evaluated to false and empty object -> {} and non-empty object are evaluated to true
-
+ The type of the return value is string ( since we concatenate to support interpolated references
+
if value does not exist in JSON and the input is a single reference: {x}
dust render emits empty string, and we then return false
- if values does not exist in JSON and the input is a chain of references : {x} < {y}
+ if values does not exist in JSON and the input is interpolated references : {x} < {y}
dust render emits < and we return the partial output
*/

0 comments on commit bc0facf

Please sign in to comment.