{{# let }} scoped helper docs & mention that addConverter can take an object as name
-
Update the docs to explain how to use
lethelper:
{{# let VARIABLE_NAME=VALUE [,HASHES] }} FN {{/ let}} -
Mention that
addConverteraccepts a name as object to add multiple converters at once:
stache.addConverter({
"numberToHex": {
get: function(val) {
return canReflect.getValue(val).toString(16);
},
set: function(val, valCompute) {
return canReflect.setValue(valCompute, parseInt("0x" + val));
}
},
"capitalize": {
get: function(val){
return canReflect.getValue(val).toString().toUpperCase();
},
set: function(val, valCompute) {
return canReflect.setValue(valCompute, val.toLowerCase());
}
}
});