{"action":"created","issue":{"url":"https://api.github.com/repos/getgrav/grav/issues/949","repository_url":"https://api.github.com/repos/getgrav/grav","labels_url":"https://api.github.com/repos/getgrav/grav/issues/949/labels{/name}","comments_url":"https://api.github.com/repos/getgrav/grav/issues/949/comments","events_url":"https://api.github.com/repos/getgrav/grav/issues/949/events","html_url":"https://github.com/getgrav/grav/issues/949","id":166561373,"number":949,"title":"Correct usage of arbitrary yaml files in the config folder","user":{"login":"locii","id":799410,"avatar_url":"https://avatars.githubusercontent.com/u/799410?v=3","gravatar_id":"","url":"https://api.github.com/users/locii","html_url":"https://github.com/locii","followers_url":"https://api.github.com/users/locii/followers","following_url":"https://api.github.com/users/locii/following{/other_user}","gists_url":"https://api.github.com/users/locii/gists{/gist_id}","starred_url":"https://api.github.com/users/locii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/locii/subscriptions","organizations_url":"https://api.github.com/users/locii/orgs","repos_url":"https://api.github.com/users/locii/repos","events_url":"https://api.github.com/users/locii/events{/privacy}","received_events_url":"https://api.github.com/users/locii/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/getgrav/grav/labels/to%20document","name":"to document","color":"207de5"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-20T11:41:09Z","updated_at":"2016-07-20T18:45:09Z","closed_at":null,"body":"In the documentation on this page:\r\n it mentions that you can use an arbitrary yaml file to load config values:\r\n\r\n\r\n\"You are also not limited to the user/config/system.yaml or the user/config/site.yaml files as described above. You can create any arbitrary .yaml configuration file in the user/config folder you wish and it will get picked up by Grav automatically.\"\r\n\r\nI've understood that to mean that if I add a file called hello.yaml in the config folder I should be able to access the yaml data using something like this in a twig template:\r\n\r\n{{hello.mysetting}}\r\n\r\nHowever it's not getting picked up.\r\n\r\nIf I put an error in the yaml I get a whoops page so it seems that the hello.yaml is loaded so I guess it's a matter of finding the right syntax.\r\n\r\nAny pointers on what that syntax should be?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/getgrav/grav/issues/comments/234043365","html_url":"https://github.com/getgrav/grav/issues/949#issuecomment-234043365","issue_url":"https://api.github.com/repos/getgrav/grav/issues/949","id":234043365,"user":{"login":"rhukster","id":1084697,"avatar_url":"https://avatars.githubusercontent.com/u/1084697?v=3","gravatar_id":"","url":"https://api.github.com/users/rhukster","html_url":"https://github.com/rhukster","followers_url":"https://api.github.com/users/rhukster/followers","following_url":"https://api.github.com/users/rhukster/following{/other_user}","gists_url":"https://api.github.com/users/rhukster/gists{/gist_id}","starred_url":"https://api.github.com/users/rhukster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhukster/subscriptions","organizations_url":"https://api.github.com/users/rhukster/orgs","repos_url":"https://api.github.com/users/rhukster/repos","events_url":"https://api.github.com/users/rhukster/events{/privacy}","received_events_url":"https://api.github.com/users/rhukster/received_events","type":"User","site_admin":false},"created_at":"2016-07-20T18:45:09Z","updated_at":"2016-07-20T18:45:09Z","body":"I will update the docs with this information."}}
{"actor":{"display_login":"rhukster"}}