javascript - What is the %< ... >% syntax called? -


saw

animaterotate : true, animatescale : false, legendtemplate : "<ul class=\"<%=name.tolowercase()%>-legend\"><% (var i=0; i<segments.length; i++){%><li><span style=\"background-color:<%=segments[i].fillcolor%>\"></span><%if(segments[i].label){%><%=segments[i].label%><%}%></li><%}%></ul>" }; 

and i'm wondering <% ... %> syntax because i've never seen before. i'm supposing it's way of embedding javascript in javascript strings? , can link me documentation on how use it?

they're called directives , exist in server-side programing language.

they have different tags can perform specific task in html environment. e.g can declare variables,import libraries,call methods, , perform sort of business logic.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -