DoneJS StealJS jQuery ++ FuncUnit DocumentJS
3.0.0
2.3.27

 

  • Github
  • Twitter
  • Chat
  • Forum
  • Guides
  • Core
  • Ecosystem
  • Infrastructure
  • Legacy
    • can-ejs
      • tags
        • <% CODE %>
        • <%= CODE %>
        • <%== CODE %>
        • <%# CODE %>
      • methods
        • from
    • can-list
    • can-map
    • can-map-backup
    • can-map-define
    • can-view-href
  • Bitovi
    • Bitovi.com
    • Blog
    • Consulting
    • Training
    • Open Source
  • Chat
  • Forum
  • Star
  • Follow @canjs
  • CanJS
  • /
  • Legacy
  • /
  • can-ejs
  • /
  • <%= CODE %>
  • / On this page
    • <%= CODE %>

      function
      • source

      <%= CODE %>

      Runs JS Code and writes the escaped result into the result of the template. This is useful for when you want to show code in your page.

      The following results in the user seeing "my favorite element is <blink>BLINK<blink>" and not BLINK.

       <div>my favorite element is <%= '<blink>BLINK</blink>' %>.</div>
      

      CanJS is part of DoneJS. Created and maintained by the core DoneJS team and Bitovi. Currently 3.0.0.