How do templating engines in JavaScript work?

Posted by Randy Gurment on Stack Overflow See other posts from Stack Overflow or by Randy Gurment
Published on 2010-04-19T18:15:29Z Indexed on 2010/04/19 18:23 UTC
Read the original article Hit count: 191

Filed under:

Hello,

Could you please explain me, how do templating engines in JavaScript work? Thank you.

JSON

{ "color" : "red"}

Template

<strong><%=color%></strong>

Result

<strong>Red</strong>

© Stack Overflow or respective owner

Related posts about JavaScript