{"action":"opened","issue":{"url":"https://api.github.com/repos/kelseyhightower/confd/issues/343","labels_url":"https://api.github.com/repos/kelseyhightower/confd/issues/343/labels{/name}","comments_url":"https://api.github.com/repos/kelseyhightower/confd/issues/343/comments","events_url":"https://api.github.com/repos/kelseyhightower/confd/issues/343/events","html_url":"https://github.com/kelseyhightower/confd/issues/343","id":109710006,"number":343,"title":"add and subtract template functions","user":{"login":"PrFalken","id":334048,"avatar_url":"https://avatars.githubusercontent.com/u/334048?v=3","gravatar_id":"","url":"https://api.github.com/users/PrFalken","html_url":"https://github.com/PrFalken","followers_url":"https://api.github.com/users/PrFalken/followers","following_url":"https://api.github.com/users/PrFalken/following{/other_user}","gists_url":"https://api.github.com/users/PrFalken/gists{/gist_id}","starred_url":"https://api.github.com/users/PrFalken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrFalken/subscriptions","organizations_url":"https://api.github.com/users/PrFalken/orgs","repos_url":"https://api.github.com/users/PrFalken/repos","events_url":"https://api.github.com/users/PrFalken/events{/privacy}","received_events_url":"https://api.github.com/users/PrFalken/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-04T22:48:19Z","updated_at":"2015-10-04T22:48:19Z","closed_at":null,"body":"It would be nice to be able to increase or decrease numbers in templates.\r\nMy use case is that when a system is a cache layer and registers itself in zookeeper, it should be able to access the upper/lower layers by configuration. Calling {{ add $layerId \"1\" }} would simply do the trick.\r\n\r\nI have a PR ready if you're up for it."}}