Skip to content
This repository
Browse code

Update lib/dust-helpers.js

  • Loading branch information...
commit bc0facf20b6b12dd586534e8b7be215e13acd1d0 1 parent 42a381b
Veena Basavaraj vybs authored

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. +3 2 lib/dust-helpers.js
5 lib/dust-helpers.js
@@ -99,11 +99,12 @@ var helpers = {
99 99 "" or '' will evaluate to false, boolean false, null, or undefined will evaluate to false,
100 100 numeric 0 evaluates to true, so does, string "0", string "null", string "undefined" and string "false".
101 101 Also note that empty array -> [] is evaluated to false and empty object -> {} and non-empty object are evaluated to true
102   -
  102 + The type of the return value is string ( since we concatenate to support interpolated references
  103 +
103 104 if value does not exist in JSON and the input is a single reference: {x}
104 105 dust render emits empty string, and we then return false
105 106
106   - if values does not exist in JSON and the input is a chain of references : {x} < {y}
  107 + if values does not exist in JSON and the input is interpolated references : {x} < {y}
107 108 dust render emits < and we return the partial output
108 109
109 110 */

0 comments on commit bc0facf

Please sign in to comment.
Something went wrong with that request. Please try again.