{"action":"created","issue":{"url":"https://api.github.com/repos/revel/revel/issues/905","labels_url":"https://api.github.com/repos/revel/revel/issues/905/labels{/name}","comments_url":"https://api.github.com/repos/revel/revel/issues/905/comments","events_url":"https://api.github.com/repos/revel/revel/issues/905/events","html_url":"https://github.com/revel/revel/issues/905","id":63607681,"number":905,"title":"Howto Template","user":{"login":"jniltinho","id":1027494,"avatar_url":"https://avatars.githubusercontent.com/u/1027494?v=3","gravatar_id":"","url":"https://api.github.com/users/jniltinho","html_url":"https://github.com/jniltinho","followers_url":"https://api.github.com/users/jniltinho/followers","following_url":"https://api.github.com/users/jniltinho/following{/other_user}","gists_url":"https://api.github.com/users/jniltinho/gists{/gist_id}","starred_url":"https://api.github.com/users/jniltinho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jniltinho/subscriptions","organizations_url":"https://api.github.com/users/jniltinho/orgs","repos_url":"https://api.github.com/users/jniltinho/repos","events_url":"https://api.github.com/users/jniltinho/events{/privacy}","received_events_url":"https://api.github.com/users/jniltinho/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/revel/revel/labels/support","name":"support","color":"000000"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-23T02:46:51Z","updated_at":"2015-03-23T05:29:17Z","closed_at":"2015-03-23T05:26:36Z","body":"Rules in Template:\r\n\r\nExample:\r\n\r\nGet {{set number1 = number / 1024}} or\r\n{{set number1 = number * 1024}}\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/revel/revel/issues/comments/84816343","html_url":"https://github.com/revel/revel/issues/905#issuecomment-84816343","issue_url":"https://api.github.com/repos/revel/revel/issues/905","id":84816343,"user":{"login":"pushrax","id":984857,"avatar_url":"https://avatars.githubusercontent.com/u/984857?v=3","gravatar_id":"","url":"https://api.github.com/users/pushrax","html_url":"https://github.com/pushrax","followers_url":"https://api.github.com/users/pushrax/followers","following_url":"https://api.github.com/users/pushrax/following{/other_user}","gists_url":"https://api.github.com/users/pushrax/gists{/gist_id}","starred_url":"https://api.github.com/users/pushrax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pushrax/subscriptions","organizations_url":"https://api.github.com/users/pushrax/orgs","repos_url":"https://api.github.com/users/pushrax/repos","events_url":"https://api.github.com/users/pushrax/events{/privacy}","received_events_url":"https://api.github.com/users/pushrax/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T05:29:17Z","updated_at":"2015-03-23T05:29:17Z","body":"Sometimes templates are the right place to do certain calculations if the result is only relevant to the view. For example, calculating a percentage from a ratio. However, the cleanest way would be to create a filter (\"TemplateFunc\") that does the specific calculation, rather than doing arbitrary math in the template."}}