{"action":"created","issue":{"url":"https://api.github.com/repos/jsreport/jsreport/issues/103","labels_url":"https://api.github.com/repos/jsreport/jsreport/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/jsreport/jsreport/issues/103/comments","events_url":"https://api.github.com/repos/jsreport/jsreport/issues/103/events","html_url":"https://github.com/jsreport/jsreport/issues/103","id":102183160,"number":103,"title":"feature request: allow sharing templates, resources, scripts, helpers between jsreport and toner","user":{"login":"bjrmatos","id":4262050,"avatar_url":"https://avatars.githubusercontent.com/u/4262050?v=3","gravatar_id":"","url":"https://api.github.com/users/bjrmatos","html_url":"https://github.com/bjrmatos","followers_url":"https://api.github.com/users/bjrmatos/followers","following_url":"https://api.github.com/users/bjrmatos/following{/other_user}","gists_url":"https://api.github.com/users/bjrmatos/gists{/gist_id}","starred_url":"https://api.github.com/users/bjrmatos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjrmatos/subscriptions","organizations_url":"https://api.github.com/users/bjrmatos/orgs","repos_url":"https://api.github.com/users/bjrmatos/repos","events_url":"https://api.github.com/users/bjrmatos/events{/privacy}","received_events_url":"https://api.github.com/users/bjrmatos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-20T16:56:39Z","updated_at":"2015-08-20T22:04:22Z","closed_at":null,"body":"Hi, i have a use case where i need to share my templates, scripts, helpers, etc between jsreport and [jsreport/toner](https://github.com/jsreport/toner)\r\n\r\ni want to package my templates, scripts, helpers, etc in some kind of module (installable by npm) and share it with other applications, for example i want to use a template created with jsreport studio inside a [electron](http://electron.atom.io/) based desktop application, but i don't want/need the full jsreport as a dependency of my app, i just need jsreport/toner. \r\n\r\nBecause jsreport saves templates, etc inside a db (nedb, mongodb, etc) i won't be able to share my templates, etc between projects, i know that i can read this information from db (nedb, mongodb, etc) and manually import them in my jsreport/toner configuration, but this won't work if any of this apps don't have access to the jsreport db.\r\n\r\nSo basically what i'm asking is to support sharing this kind of resources (templates, scripts, file resources) in a modular/node.js way, in order to do this i think jsreport could import this resources from my shared modules and do its job, right know the only problem i notice is how to sync the edit of a file inside jsreport studio with my module source's code.\r\n\r\nif i understand correctly, right now template helpers are declared inside template definition, is there a way to define templates globally and let jsreport import them? so we can share template helpers between jsreport and jsreport/toner.\r\n\r\ni think first we must identify what kind of information can be shared between jsreport and jsreport/toner, allowing share templates, scripts, helpers, import them , etc will be very useful IMHO."},"comment":{"url":"https://api.github.com/repos/jsreport/jsreport/issues/comments/133192397","html_url":"https://github.com/jsreport/jsreport/issues/103#issuecomment-133192397","issue_url":"https://api.github.com/repos/jsreport/jsreport/issues/103","id":133192397,"user":{"login":"bjrmatos","id":4262050,"avatar_url":"https://avatars.githubusercontent.com/u/4262050?v=3","gravatar_id":"","url":"https://api.github.com/users/bjrmatos","html_url":"https://github.com/bjrmatos","followers_url":"https://api.github.com/users/bjrmatos/followers","following_url":"https://api.github.com/users/bjrmatos/following{/other_user}","gists_url":"https://api.github.com/users/bjrmatos/gists{/gist_id}","starred_url":"https://api.github.com/users/bjrmatos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjrmatos/subscriptions","organizations_url":"https://api.github.com/users/bjrmatos/orgs","repos_url":"https://api.github.com/users/bjrmatos/repos","events_url":"https://api.github.com/users/bjrmatos/events{/privacy}","received_events_url":"https://api.github.com/users/bjrmatos/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T22:04:22Z","updated_at":"2015-08-20T22:04:22Z","body":"awesome, let's see if i can finally contribute jahja"}}