{"action":"opened","issue":{"url":"https://api.github.com/repos/SamyPesse/tpl-emails/issues/2","labels_url":"https://api.github.com/repos/SamyPesse/tpl-emails/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/SamyPesse/tpl-emails/issues/2/comments","events_url":"https://api.github.com/repos/SamyPesse/tpl-emails/issues/2/events","html_url":"https://github.com/SamyPesse/tpl-emails/issues/2","id":66201773,"number":2,"title":"Juice inline loader => ENOENT","user":{"login":"davisford","id":186677,"avatar_url":"https://avatars.githubusercontent.com/u/186677?v=3","gravatar_id":"","url":"https://api.github.com/users/davisford","html_url":"https://github.com/davisford","followers_url":"https://api.github.com/users/davisford/followers","following_url":"https://api.github.com/users/davisford/following{/other_user}","gists_url":"https://api.github.com/users/davisford/gists{/gist_id}","starred_url":"https://api.github.com/users/davisford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davisford/subscriptions","organizations_url":"https://api.github.com/users/davisford/orgs","repos_url":"https://api.github.com/users/davisford/repos","events_url":"https://api.github.com/users/davisford/events{/privacy}","received_events_url":"https://api.github.com/users/davisford/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-03T18:16:56Z","updated_at":"2015-04-03T18:16:56Z","closed_at":null,"body":"I understand this has something to do with Juice, and it looks like they farm out the actual file loading to some other 3rd party lib, but with the following line in my template file:\r\n\r\n```\r\n  {% block head %}\r\n  <link href=\"styles.css\" media=\"all\" rel=\"stylesheet\" type=\"text/css\" />\r\n  {% endblock %}\r\n```\r\n\r\nDirectory structure:\r\n\r\n```\r\n$tree src/server/email/\r\nsrc/server/email/\r\n├── index.js\r\n└── templates\r\n    └── my-template-name.html\r\n```\r\n\r\nand spinning up TplEmails like so in `src/server/email/index.js`\r\n\r\n```javascript\r\nvar nunjucks = require('nunjucks'),\r\n  TplEmails = require('tpl-emails'),\r\n  env = new nunjucks.Environment(new nunjucks.FileSystemLoader('./templates'));\r\n\r\nreturn new TplEmails({\r\n  render: env.render.bind(env)\r\n});\r\n```\r\n\r\nI am left with this:\r\n\r\n```\r\nTemplate render error: Error: ENOENT, no such file or directory '/Users/davis/git/warehouse-web/file:/Users/davis/git/warehouse-web/src/server/email/templates/styles.css'\r\n    at Error (native)\r\n    at Object.fs.openSync (fs.js:500:18)\r\n    at Object.fs.readFileSync (fs.js:352:15)\r\n    at Object.util.getInlineFileContents (/Users/davis/git/warehouse-web/node_modules/tpl-emails/node_modules/juice/node_modules/web-resource-inliner/src/util.js:98:17)\r\n    at Object.util.getTextReplacement (/Users/davis/git/warehouse-web/node_modules/tpl-emails/node_modules/juice/node_modules/web-resource-inliner/src/util.js:109:30)\r\n    at Object.replaceLink (/Users/davis/git/warehouse-web/node_modules/tpl-emails/node_modules/juice/node_modules/web-resource-inliner/src/html.js:41:16)\r\n```\r\n\r\nWhere it is pasting the root path in front of an absolute path.  Any idea -- or am I somehow initializing it incorrectly?\r\n\r\n"}}