{"action":"created","issue":{"url":"https://api.github.com/repos/sass/node-sass/issues/1029","labels_url":"https://api.github.com/repos/sass/node-sass/issues/1029/labels{/name}","comments_url":"https://api.github.com/repos/sass/node-sass/issues/1029/comments","events_url":"https://api.github.com/repos/sass/node-sass/issues/1029/events","html_url":"https://github.com/sass/node-sass/issues/1029","id":94271240,"number":1029,"title":"inject data","user":{"login":"avetisk","id":737729,"avatar_url":"https://avatars.githubusercontent.com/u/737729?v=3","gravatar_id":"","url":"https://api.github.com/users/avetisk","html_url":"https://github.com/avetisk","followers_url":"https://api.github.com/users/avetisk/followers","following_url":"https://api.github.com/users/avetisk/following{/other_user}","gists_url":"https://api.github.com/users/avetisk/gists{/gist_id}","starred_url":"https://api.github.com/users/avetisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avetisk/subscriptions","organizations_url":"https://api.github.com/users/avetisk/orgs","repos_url":"https://api.github.com/users/avetisk/repos","events_url":"https://api.github.com/users/avetisk/events{/privacy}","received_events_url":"https://api.github.com/users/avetisk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sass/node-sass/labels/Feature%20-%20Request","name":"Feature - Request","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-10T10:06:42Z","updated_at":"2015-07-13T03:29:35Z","closed_at":null,"body":"It would be great to be able to inject directly data before processing files, for instance to set dynimicaly some variables, etc.\r\n\r\nExample:\r\n\r\n```\r\nsass.render({\r\n  'file': entryFile,\r\n  'inject': '$assets_path: \"/path/to/assets\";'\r\n  ...\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/sass/node-sass/issues/comments/120798339","html_url":"https://github.com/sass/node-sass/issues/1029#issuecomment-120798339","issue_url":"https://api.github.com/repos/sass/node-sass/issues/1029","id":120798339,"user":{"login":"xzyfer","id":579928,"avatar_url":"https://avatars.githubusercontent.com/u/579928?v=3","gravatar_id":"","url":"https://api.github.com/users/xzyfer","html_url":"https://github.com/xzyfer","followers_url":"https://api.github.com/users/xzyfer/followers","following_url":"https://api.github.com/users/xzyfer/following{/other_user}","gists_url":"https://api.github.com/users/xzyfer/gists{/gist_id}","starred_url":"https://api.github.com/users/xzyfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xzyfer/subscriptions","organizations_url":"https://api.github.com/users/xzyfer/orgs","repos_url":"https://api.github.com/users/xzyfer/repos","events_url":"https://api.github.com/users/xzyfer/events{/privacy}","received_events_url":"https://api.github.com/users/xzyfer/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T03:29:35Z","updated_at":"2015-07-13T03:29:35Z","body":"This is unlikely to be implemented in node-sass core. Having code magically injected like this affects code portability which is a _feature_ of Sass.\r\n\r\n***\r\n\r\nThere is however a work around for switching variable values that I use and suggest to others. I've discussion in depth how to do so in https://github.com/sass/node-sass/issues/965#issuecomment-103384773."}}