{"action":"created","issue":{"url":"https://api.github.com/repos/bartavelle/language-puppet/issues/127","labels_url":"https://api.github.com/repos/bartavelle/language-puppet/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/bartavelle/language-puppet/issues/127/comments","events_url":"https://api.github.com/repos/bartavelle/language-puppet/issues/127/events","html_url":"https://github.com/bartavelle/language-puppet/issues/127","id":102784463,"number":127,"title":"Are ext_funcs looked up in Erb templates ?","user":{"login":"PierreR","id":93115,"avatar_url":"https://avatars.githubusercontent.com/u/93115?v=3","gravatar_id":"","url":"https://api.github.com/users/PierreR","html_url":"https://github.com/PierreR","followers_url":"https://api.github.com/users/PierreR/followers","following_url":"https://api.github.com/users/PierreR/following{/other_user}","gists_url":"https://api.github.com/users/PierreR/gists{/gist_id}","starred_url":"https://api.github.com/users/PierreR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PierreR/subscriptions","organizations_url":"https://api.github.com/users/PierreR/orgs","repos_url":"https://api.github.com/users/PierreR/repos","events_url":"https://api.github.com/users/PierreR/events{/privacy}","received_events_url":"https://api.github.com/users/PierreR/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bartavelle/language-puppet/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-24T12:46:14Z","updated_at":"2015-08-24T13:06:07Z","closed_at":null,"body":"In Puppet, functions defined in `modulename/lib/puppet/parser/functions/` can be used inside `erb` templates by prefixing them by `function_`.\r\n\r\nTo support the [`apache` puppetlabs module](https://github.com/puppetlabs/puppetlabs-apache/blob/master/templates/httpd.conf.erb#L3), I add `bool2httpd` into our haskell module `Puppetlabs`.\r\n\r\nIt still does not work and I am now under the impression that `prefExtfuncs` (including the one defined in lua files) won't be lookup in `erb` templates. Is this correct ?\r\n\r\nIf so, would it be hard to support this ?"},"comment":{"url":"https://api.github.com/repos/bartavelle/language-puppet/issues/comments/134194471","html_url":"https://github.com/bartavelle/language-puppet/issues/127#issuecomment-134194471","issue_url":"https://api.github.com/repos/bartavelle/language-puppet/issues/127","id":134194471,"user":{"login":"bartavelle","id":1183983,"avatar_url":"https://avatars.githubusercontent.com/u/1183983?v=3","gravatar_id":"","url":"https://api.github.com/users/bartavelle","html_url":"https://github.com/bartavelle","followers_url":"https://api.github.com/users/bartavelle/followers","following_url":"https://api.github.com/users/bartavelle/following{/other_user}","gists_url":"https://api.github.com/users/bartavelle/gists{/gist_id}","starred_url":"https://api.github.com/users/bartavelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartavelle/subscriptions","organizations_url":"https://api.github.com/users/bartavelle/orgs","repos_url":"https://api.github.com/users/bartavelle/repos","events_url":"https://api.github.com/users/bartavelle/events{/privacy}","received_events_url":"https://api.github.com/users/bartavelle/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T13:06:07Z","updated_at":"2015-08-24T13:06:07Z","body":"This is correct, and I think this *could* be possible. I'll think about it."}}