1

Sorry for asking here. I tried googling it with no luck. I found it in chartjs's core script.

Example(actual code snippet):

// String - Template string for single tooltips
tooltipTemplate: "<%if (label){%><%=label%>: <%}%><%= value %>",

Link: https://github.com/nnnick/Chart.js/blob/master/Chart.js

Do a ctrl+f for <% and you will see many of them.

Thanks in advance!

Tamil Selvan C
  • 19,913
  • 12
  • 49
  • 70

2 Answers2

0

On Line 46 you can see in the comments it mentions they're using this Mirco-Templating language.

Miguel Mota
  • 20,135
  • 5
  • 45
  • 64
0

Its a templating system. For example :

<script type="text/html" id="item_tmpl">
  <div id="<%=id%>" class="<%=(i % 2 == 1 ? " even" : "")%>">
    <div class="grid_1 alpha right">
      <img class="righted" src="<%=profile_image_url%>"/>
    </div>
    <div class="grid_6 omega contents">
      <p><b><a href="/<%=from_user%>"><%=from_user%></a>:</b> <%=text%></p>
    </div>
  </div>
</script>
JGCW
  • 1,509
  • 1
  • 13
  • 25