Client side templating with unknown variables
Posted
by Eirik Johansen
on Stack Overflow
See other posts from Stack Overflow
or by Eirik Johansen
Published on 2010-04-28T14:11:09Z
Indexed on
2010/04/28
14:13 UTC
Read the original article
Hit count: 410
Our company has an intranet consisting of several e-mail templates filled with variables (like [[NAME]], [[PROJECT]] and so on). I was thinking of implementing some sort of client side templating to make it easier to replace these variables with actual values.
The problem is that among all the client side template solutions I've located so far, all of them seem to assume that the JS code knows all the template variables that exist in the markup, and none of them seem to be able to fetch a list of variables defined in the markup.
Does anyone know of any solutions/plugin which makes this possible?
Thanks in advance!
© Stack Overflow or respective owner