Skip to content

Instantly share code, notes, and snippets.

@attebury
Created May 1, 2017 16:46
Show Gist options
  • Save attebury/d0c9bf1fbe93df945e697e7a32f2f63c to your computer and use it in GitHub Desktop.
Save attebury/d0c9bf1fbe93df945e697e7a32f2f63c to your computer and use it in GitHub Desktop.
<script id="js-template-messages" type="text/x-kendo-template">
<ul class="bo-list bo-card__list bo-articles bo-articles--static">
# if (messages.length > 0) { #
# for (var i=0; i < messages.length; i++) { #
<li class="bo-card__item">
<span class="bo-article__headline bo-article__headline--static"> #= messages[i].messageTitle #</span>
<span class="bo-article__description bo-article__description--static">#= messages[i].messageText #</span>
</li>
# } #
# } # @*else { #
<li>There are no messages</li>
# } #*@
</ul>
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment