{"action":"created","issue":{"url":"https://api.github.com/repos/slm-lang/slm/issues/22","repository_url":"https://api.github.com/repos/slm-lang/slm","labels_url":"https://api.github.com/repos/slm-lang/slm/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/slm-lang/slm/issues/22/comments","events_url":"https://api.github.com/repos/slm-lang/slm/issues/22/events","html_url":"https://github.com/slm-lang/slm/issues/22","id":149782718,"number":22,"title":"Dependancies","user":{"login":"ComLock","id":118847,"avatar_url":"https://avatars.githubusercontent.com/u/118847?v=3","gravatar_id":"","url":"https://api.github.com/users/ComLock","html_url":"https://github.com/ComLock","followers_url":"https://api.github.com/users/ComLock/followers","following_url":"https://api.github.com/users/ComLock/following{/other_user}","gists_url":"https://api.github.com/users/ComLock/gists{/gist_id}","starred_url":"https://api.github.com/users/ComLock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ComLock/subscriptions","organizations_url":"https://api.github.com/users/ComLock/orgs","repos_url":"https://api.github.com/users/ComLock/repos","events_url":"https://api.github.com/users/ComLock/events{/privacy}","received_events_url":"https://api.github.com/users/ComLock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-20T14:23:48Z","updated_at":"2016-04-20T14:58:43Z","closed_at":null,"body":"Your package.json states no dependancies, but I can find several:\r\n\r\n```\r\ngrep -r 'require(' .|grep -v \"'\\.\"\r\n./slm.js:var FS = require('fs');\r\n./vm_node.js:var FS = require('fs');\r\n./vm_node.js:var NodeVM = require('vm');\r\n./vm_node.js:var Path = require('path');\r\n```\r\n\r\nI'm trying to use slm with this CMS\r\nhttps://enonic.com/\r\n\r\nWhich is using thymeleaf by default. Slm is a lot slimmer :) me want.\r\n\r\nThe runtime is java, but the controllers are written in javascript.\r\n\r\nAll I really need is to slm.compile a slm file, passing in a model.object (a basic hash), and get back some html. Do I need Node VM, etc for that?\r\n\r\nCould slm be shipped as a webjar?\r\nhttp://www.webjars.org/"},"comment":{"url":"https://api.github.com/repos/slm-lang/slm/issues/comments/212462704","html_url":"https://github.com/slm-lang/slm/issues/22#issuecomment-212462704","issue_url":"https://api.github.com/repos/slm-lang/slm/issues/22","id":212462704,"user":{"login":"ComLock","id":118847,"avatar_url":"https://avatars.githubusercontent.com/u/118847?v=3","gravatar_id":"","url":"https://api.github.com/users/ComLock","html_url":"https://github.com/ComLock","followers_url":"https://api.github.com/users/ComLock/followers","following_url":"https://api.github.com/users/ComLock/following{/other_user}","gists_url":"https://api.github.com/users/ComLock/gists{/gist_id}","starred_url":"https://api.github.com/users/ComLock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ComLock/subscriptions","organizations_url":"https://api.github.com/users/ComLock/orgs","repos_url":"https://api.github.com/users/ComLock/repos","events_url":"https://api.github.com/users/ComLock/events{/privacy}","received_events_url":"https://api.github.com/users/ComLock/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T14:58:43Z","updated_at":"2016-04-20T14:58:43Z","body":"Enonic has its own require:\r\nhttp://xp.readthedocs.org/en/stable/developer/ssjs/global-objects.html?highlight=require#require\r\n\r\nSo node_modules is not really accessable.\r\n\r\nI guess I could try making a webpack with slm, fs, vm and path."}}