{"action":"closed","issue":{"url":"https://api.github.com/repos/foam-framework/foam/issues/162","labels_url":"https://api.github.com/repos/foam-framework/foam/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/foam-framework/foam/issues/162/comments","events_url":"https://api.github.com/repos/foam-framework/foam/issues/162/events","html_url":"https://github.com/foam-framework/foam/issues/162","id":32636817,"number":162,"title":"HTMLTemplates","user":{"login":"shepheb","id":157812,"avatar_url":"https://avatars.githubusercontent.com/u/157812?v=3","gravatar_id":"","url":"https://api.github.com/users/shepheb","html_url":"https://github.com/shepheb","followers_url":"https://api.github.com/users/shepheb/followers","following_url":"https://api.github.com/users/shepheb/following{/other_user}","gists_url":"https://api.github.com/users/shepheb/gists{/gist_id}","starred_url":"https://api.github.com/users/shepheb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shepheb/subscriptions","organizations_url":"https://api.github.com/users/shepheb/orgs","repos_url":"https://api.github.com/users/shepheb/repos","events_url":"https://api.github.com/users/shepheb/events{/privacy}","received_events_url":"https://api.github.com/users/shepheb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/foam-framework/foam/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/foam-framework/foam/labels/imported","name":"imported","color":"FFFFFF"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-05-01T18:40:20Z","updated_at":"2015-11-25T16:37:34Z","closed_at":"2015-11-25T16:37:34Z","body":"\n_From [k...@chromium.org](https://code.google.com/u/101260952816761938100/) on January 19, 2014 21:51:21_\n\nCreate a sub-class of the current template system specificially for supporting/understanding HTML syntax.\r\n\r\nMaybe do one-way binding like this:\r\n\r\n<div id=&#37;ID attribute=&#37;attr style=\"color:&#37;color;\">\r\n\r\nWhere &#37;ID, &#37;attr and &#37;color are take from properties of 'this', or some other object if you did 'attribute=&#37;other.attr'.\r\n\r\nIf you did something like\r\n\r\n<div attribute=&#37;&#37;attr style=\"color:&#37;&#37;color'\">\r\n\r\nThen it would be bound to the properties and update when they change, or maybe use {{ }} syntax.\r\n\r\nWe could even support the regular 'on' syntax (ie. onClick='code()') for registering callbacks and just convert them to calls to the on() method.\n\n_Original issue: http://code.google.com/p/foam-framework/issues/detail?id=162_\n"}}