{"action":"closed","issue":{"url":"https://api.github.com/repos/rkworks/baum/issues/1","labels_url":"https://api.github.com/repos/rkworks/baum/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/rkworks/baum/issues/1/comments","events_url":"https://api.github.com/repos/rkworks/baum/issues/1/events","html_url":"https://github.com/rkworks/baum/issues/1","id":67817647,"number":1,"title":"Relative include paths","user":{"login":"rkworks","id":857162,"avatar_url":"https://avatars.githubusercontent.com/u/857162?v=3","gravatar_id":"","url":"https://api.github.com/users/rkworks","html_url":"https://github.com/rkworks","followers_url":"https://api.github.com/users/rkworks/followers","following_url":"https://api.github.com/users/rkworks/following{/other_user}","gists_url":"https://api.github.com/users/rkworks/gists{/gist_id}","starred_url":"https://api.github.com/users/rkworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkworks/subscriptions","organizations_url":"https://api.github.com/users/rkworks/orgs","repos_url":"https://api.github.com/users/rkworks/repos","events_url":"https://api.github.com/users/rkworks/events{/privacy}","received_events_url":"https://api.github.com/users/rkworks/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-11T18:43:40Z","updated_at":"2015-05-11T09:38:37Z","closed_at":"2015-05-11T09:38:37Z","body":"> First, I wanted relative include paths to be resolved relative to the path of the file being parsed. I hacked around this in a messy way, but do you think it would make sense to either add a :relative-to-path or a :file-resolve-fn to opts to customize how relative paths are resolved? The :file-resolve-fn value would be a function called with the opts and the included file's path and returns the absolute path or any object slurp accepts. I haven't thought through how nested relative includes would work.\r\n\r\nCoppied from [Google Group](https://groups.google.com/forum/#!msg/clojure/JWap5qNYd04/ceAm7JgL9tsJ). Thanks, Geoff :)"}}