Created
September 2, 2016 17:49
-
-
Save eob/596f51dfb2eb8919ee25478948dd7cbd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports.beforeRender = function(elem, data) { | |
for (var i = 0; i < data.Sheet1.length; i++) { | |
data.Sheet1[i].SoldTrue = (data.Sheet[i].SaleStatus && data.Sheet[i].SaleStatus.length); | |
data.Sheet1[i].SoldFalse = ! data.Sheet1[i].SoldTrue; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{#each Sheet1}} | |
{{#if SoldFalse}} | |
.. | |
{{/if}} | |
{{/each}} | |
{{#each Sheet1}} | |
{{#if SoldTrue}} | |
.. | |
{{/if}} | |
{{/each}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment