Function call and checking results in DustJs
问题 I am combining connect-roles with dust template ejs template have something like this syntax <% if (userCan('impersonate')) { %> <button id="impersonate">Impersonate</button> <% } %> and that in jade if userCan('impersonate') button#impersonate Impersonate How to do this in dust? {@eq key=userCan('edit data') value="true" } <td><a href='/assets/edit/{.ID_ASSET}'>Edit</a></td> <td><a href='/assets/delete/{.ID_ASSET}'>Delete</a></td> {:else} {/eq} This code get me an error Wed, 06 Jan 2016 16