{"action":"created","issue":{"url":"https://api.github.com/repos/jadejs/jade/issues/2088","labels_url":"https://api.github.com/repos/jadejs/jade/issues/2088/labels{/name}","comments_url":"https://api.github.com/repos/jadejs/jade/issues/2088/comments","events_url":"https://api.github.com/repos/jadejs/jade/issues/2088/events","html_url":"https://github.com/jadejs/jade/issues/2088","id":106488308,"number":2088,"title":"server side include .JSON or .JS","user":{"login":"diginfo","id":6010010,"avatar_url":"https://avatars.githubusercontent.com/u/6010010?v=3","gravatar_id":"","url":"https://api.github.com/users/diginfo","html_url":"https://github.com/diginfo","followers_url":"https://api.github.com/users/diginfo/followers","following_url":"https://api.github.com/users/diginfo/following{/other_user}","gists_url":"https://api.github.com/users/diginfo/gists{/gist_id}","starred_url":"https://api.github.com/users/diginfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diginfo/subscriptions","organizations_url":"https://api.github.com/users/diginfo/orgs","repos_url":"https://api.github.com/users/diginfo/repos","events_url":"https://api.github.com/users/diginfo/events{/privacy}","received_events_url":"https://api.github.com/users/diginfo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-15T06:18:34Z","updated_at":"2015-09-15T22:46:11Z","closed_at":"2015-09-15T14:44:14Z","body":"how can I include server-side JS code into a template, this code should not be sent to the browser, but is used for variables and or functions etc ?"},"comment":{"url":"https://api.github.com/repos/jadejs/jade/issues/comments/140569513","html_url":"https://github.com/jadejs/jade/issues/2088#issuecomment-140569513","issue_url":"https://api.github.com/repos/jadejs/jade/issues/2088","id":140569513,"user":{"login":"diginfo","id":6010010,"avatar_url":"https://avatars.githubusercontent.com/u/6010010?v=3","gravatar_id":"","url":"https://api.github.com/users/diginfo","html_url":"https://github.com/diginfo","followers_url":"https://api.github.com/users/diginfo/followers","following_url":"https://api.github.com/users/diginfo/following{/other_user}","gists_url":"https://api.github.com/users/diginfo/gists{/gist_id}","starred_url":"https://api.github.com/users/diginfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diginfo/subscriptions","organizations_url":"https://api.github.com/users/diginfo/orgs","repos_url":"https://api.github.com/users/diginfo/repos","events_url":"https://api.github.com/users/diginfo/events{/privacy}","received_events_url":"https://api.github.com/users/diginfo/received_events","type":"User","site_admin":false},"created_at":"2015-09-15T22:46:11Z","updated_at":"2015-09-15T22:46:11Z","body":"Thanks, but this has not answered the question:\r\n\r\nHow can I include a json or javascript file directly into a jade template ?\r\n\r\nI am not referring to pushing in data from nodejs, but a physical file containing variables\r\n\r\ni.e.\r\n    include somefile.json\r\n\r\neach row in jsonfile\r\n\r\n\r\nBut if I use this method, then the json data\r\n\r\n\r\n\r\n"}}