{"action":"created","issue":{"url":"https://api.github.com/repos/mmontone/djula/issues/33","labels_url":"https://api.github.com/repos/mmontone/djula/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/mmontone/djula/issues/33/comments","events_url":"https://api.github.com/repos/mmontone/djula/issues/33/events","html_url":"https://github.com/mmontone/djula/issues/33","id":128053344,"number":33,"title":"Adding default template arguments","user":{"login":"eudoxia0","id":1612511,"avatar_url":"https://avatars.githubusercontent.com/u/1612511?v=3","gravatar_id":"","url":"https://api.github.com/users/eudoxia0","html_url":"https://github.com/eudoxia0","followers_url":"https://api.github.com/users/eudoxia0/followers","following_url":"https://api.github.com/users/eudoxia0/following{/other_user}","gists_url":"https://api.github.com/users/eudoxia0/gists{/gist_id}","starred_url":"https://api.github.com/users/eudoxia0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eudoxia0/subscriptions","organizations_url":"https://api.github.com/users/eudoxia0/orgs","repos_url":"https://api.github.com/users/eudoxia0/repos","events_url":"https://api.github.com/users/eudoxia0/events{/privacy}","received_events_url":"https://api.github.com/users/eudoxia0/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-01-22T00:23:33Z","updated_at":"2016-01-22T00:53:03Z","closed_at":"2016-01-22T00:53:03Z","body":"Is there some mechanism for adding a key/value pair to Djula so I don't have to pass it every time I call render-template*? I'm currently writing a wiki where every view has to explicitly pass an argument with the wiki's name, which is rather cumbersome."},"comment":{"url":"https://api.github.com/repos/mmontone/djula/issues/comments/173765190","html_url":"https://github.com/mmontone/djula/issues/33#issuecomment-173765190","issue_url":"https://api.github.com/repos/mmontone/djula/issues/33","id":173765190,"user":{"login":"eudoxia0","id":1612511,"avatar_url":"https://avatars.githubusercontent.com/u/1612511?v=3","gravatar_id":"","url":"https://api.github.com/users/eudoxia0","html_url":"https://github.com/eudoxia0","followers_url":"https://api.github.com/users/eudoxia0/followers","following_url":"https://api.github.com/users/eudoxia0/following{/other_user}","gists_url":"https://api.github.com/users/eudoxia0/gists{/gist_id}","starred_url":"https://api.github.com/users/eudoxia0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eudoxia0/subscriptions","organizations_url":"https://api.github.com/users/eudoxia0/orgs","repos_url":"https://api.github.com/users/eudoxia0/repos","events_url":"https://api.github.com/users/eudoxia0/events{/privacy}","received_events_url":"https://api.github.com/users/eudoxia0/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T00:53:03Z","updated_at":"2016-01-22T00:53:03Z","body":"I got it working, the code is along these lines:\r\n\r\n```lisp\r\n(djula:def-tag-compiler wiki-get-user ()\r\n  (lambda (stream)\r\n    (declare (ignore stream))\r\n    (setf (getf djula::*template-arguments* :user)\r\n          (lucerne-auth:get-userid))))\r\n```"}}