{"comment":{"created_at":"2011-10-08T06:33:13Z","body":"Thanks for taking the time to submit this issue. Just wanted to let you know this plugin is no longer being actively developed or maintained by the jQuery team. See README for more info.","updated_at":"2011-10-08T06:33:13Z","url":"https://api.github.com/repos/jquery/jquery-tmpl/issues/comments/2330746","id":2330746,"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":107,"created_at":"2011-05-24T12:37:04Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"In most templating systems there is a specific syntax that makes it possible to remove white space before and/or after a template instruction. This is very useful in order to make it possible for developers to indent their code meaningfully without incurring the cost of useless white space creeping in. For instance:\r\n\r\n    {{each(i, item) stuff}}\r\n        {{if item.foo}}\r\n            blah\r\n        {{else}}\r\n            urgh\r\n        {{/if}}\r\n    {{/each}}: those are the results.\r\n\r\nThis will add a lot of white space that may prove problematic. Notably, the \":\" right after {{/each}} is likely to end up with undesired space before it.\r\n\r\nIn several other templating languages (e.g. TT) this is handled with the addition of an optional - sign at the beginning of the template instruction. So with that {{-if test}} would remove space before it, {{/if-}} would remove space after, and {{-/each-}} would remove space on both sides.\r\n\r\nRight now I'm preprocessing my tmpl code in order to support this, but it would be nicer to have it built it.","comments":4,"title":"Markup option to remove space before and after","updated_at":"2011-10-08T06:33:13Z","url":"https://api.github.com/repos/jquery/jquery-tmpl/issues/107","id":946815,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/2aa4b628a29d2b8c1f2b7742a6d8dcb0?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/darobin","id":38491,"login":"darobin"},"html_url":"https://github.com/jquery/jquery-tmpl/issues/107","labels":[],"state":"open"},"legacy":{"issue_id":946815,"comment_id":2330746}}