{"action":"created","issue":{"url":"https://api.github.com/repos/jstransformers/jstransformer/issues/91","labels_url":"https://api.github.com/repos/jstransformers/jstransformer/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/jstransformers/jstransformer/issues/91/comments","events_url":"https://api.github.com/repos/jstransformers/jstransformer/issues/91/events","html_url":"https://github.com/jstransformers/jstransformer/issues/91","id":99543451,"number":91,"title":"Rename `compile()`s .fn to `.render`?","user":{"login":"tunnckoCore","id":5038030,"avatar_url":"https://avatars.githubusercontent.com/u/5038030?v=3","gravatar_id":"","url":"https://api.github.com/users/tunnckoCore","html_url":"https://github.com/tunnckoCore","followers_url":"https://api.github.com/users/tunnckoCore/followers","following_url":"https://api.github.com/users/tunnckoCore/following{/other_user}","gists_url":"https://api.github.com/users/tunnckoCore/gists{/gist_id}","starred_url":"https://api.github.com/users/tunnckoCore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tunnckoCore/subscriptions","organizations_url":"https://api.github.com/users/tunnckoCore/orgs","repos_url":"https://api.github.com/users/tunnckoCore/repos","events_url":"https://api.github.com/users/tunnckoCore/events{/privacy}","received_events_url":"https://api.github.com/users/tunnckoCore/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jstransformers/jstransformer/labels/Meta","name":"Meta","color":"cc317c"},{"url":"https://api.github.com/repos/jstransformers/jstransformer/labels/Question","name":"Question","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-06T23:11:10Z","updated_at":"2015-08-17T02:23:02Z","closed_at":null,"body":"It's more natural and logical for me. Talking about `.fn` which is (in object) returned from `compile` method.\r\n\r\n```js\r\nvar handlebars = require('jstransformer')(require('jstransformer-handlebars'));\r\n\r\nvar render = handlebars.compile('Hello {{name}} and welcome!').render;\r\n//var render = handlebars.compile('Hello {{name}} and welcome!').fn; // currently\r\nrender({name: 'John'}); //=> 'Hello world'\r\n```"},"comment":{"url":"https://api.github.com/repos/jstransformers/jstransformer/issues/comments/131659515","html_url":"https://github.com/jstransformers/jstransformer/issues/91#issuecomment-131659515","issue_url":"https://api.github.com/repos/jstransformers/jstransformer/issues/91","id":131659515,"user":{"login":"TimothyGu","id":1538624,"avatar_url":"https://avatars.githubusercontent.com/u/1538624?v=3","gravatar_id":"","url":"https://api.github.com/users/TimothyGu","html_url":"https://github.com/TimothyGu","followers_url":"https://api.github.com/users/TimothyGu/followers","following_url":"https://api.github.com/users/TimothyGu/following{/other_user}","gists_url":"https://api.github.com/users/TimothyGu/gists{/gist_id}","starred_url":"https://api.github.com/users/TimothyGu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimothyGu/subscriptions","organizations_url":"https://api.github.com/users/TimothyGu/orgs","repos_url":"https://api.github.com/users/TimothyGu/repos","events_url":"https://api.github.com/users/TimothyGu/events{/privacy}","received_events_url":"https://api.github.com/users/TimothyGu/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T02:23:02Z","updated_at":"2015-08-17T02:23:02Z","body":"I agree with the fact that `render` is a better name for the function; but, `fn` accurately distinguishes itself with the other property in the object, `dependencies`. (What I'm saying is that you can totally tell `dependencies` is an array, and `fn` is the compiled function, since well, it came from the `compile` function and is named after function.)\r\n\r\nAnother thing to keep in mind is that even though jstransformer is still @<1 (albeit for quite some time),  a few people have started using it so it wouldn't be nice to just break it without a technical reason for such."}}