{"comment":{"created_at":"2011-10-08T19:03:03Z","body":"jQuery can still have and benefit from a single template engine, it will just be maintained by the jQuery UI team. The previous version wasn't developed with them as stakeholders and so had different design goals. For this reason, the design and development was started afresh, rather than continuing in this project.\r\n\r\nSurely there will always be plenty of choices when it comes to templating engines. jQuery UI will provide an interface that will support using your own favorite template engine, but will only fully support the one it ships. This is an example of a goal that wasn't initially part of the jquery-tmpl project.","updated_at":"2011-10-08T19:03:03Z","url":"https://api.github.com/repos/jquery/jquery-tmpl/issues/comments/2333319","id":2333319,"user":{"avatar_url":"https://secure.gravatar.com/avatar/d92ea7772f465256ad836de1ce642b37?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/rdworth","id":107824,"login":"rdworth"}},"action":"created","issue":{"number":12,"created_at":"2010-10-21T21:28:09Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"right now templates can include raw javascript.  There should be a mode (if not the default) which only allows variables, calls, and (in)equality expressions.\r\ni.e. this should be IMPOSSIBLE:\r\n{{= (get_Val() ? 3*4/this : window.location='http://github.com/jquery/' }}\r\nThis kind of strict approach is essential if the implementation can be written cross-language, and force the separation of template and code.\r\n\r\nThis issue was brought up in the original announcement:\r\nhttp://forum.jquery.com/topic/templating-syntax#14737000000824492\r\nwhere the author gives an example of a way to implement this:\r\nhttp://github.com/borgar/hugs/blob/master/hugs.js#L167","comments":7,"title":"strict mode","updated_at":"2011-10-08T19:03:03Z","url":"https://api.github.com/repos/jquery/jquery-tmpl/issues/12","id":375529,"assignee":null,"milestone":null,"closed_at":"2011-10-08T11:39:22Z","user":{"avatar_url":"https://secure.gravatar.com/avatar/75d84bf6ae77a5f714690c9d03223758?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/schuyler1d","id":52117,"login":"schuyler1d"},"html_url":"https://github.com/jquery/jquery-tmpl/issues/12","labels":[],"state":"closed"},"legacy":{"issue_id":375529,"comment_id":2333319}}