Javascript Templates
I’m working on some pure-javascript applications (namely, the hCard creator, hCalendar creator and hReview creator (and soon another, super-secret project)) and need to do some enhancement to the markup they produce. Up until this point, I(we)’ve been building all the markup by concatenating strings together. However, this will only go so far.
When talking about the need for templating languages with some people (Simon? someone else?) at XTech, the phrase that kept coming up was “you can only get so far by glueing strings together.” At some point you need a stronger, more flexible approach, especially when dealing with markup.
So, I’ve started using TrimPath’s template library. It seems pretty nice so far. I know there have been other javascript templating efforts, but none seem to have much traction. Is there anything else worth trying?
