{"action":"created","issue":{"url":"https://api.github.com/repos/carrot/roots-dynamic-content/issues/22","labels_url":"https://api.github.com/repos/carrot/roots-dynamic-content/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/carrot/roots-dynamic-content/issues/22/comments","events_url":"https://api.github.com/repos/carrot/roots-dynamic-content/issues/22/events","html_url":"https://github.com/carrot/roots-dynamic-content/issues/22","id":69103027,"number":22,"title":"buffer metadata and expose info to templates before compile","user":{"login":"declandewet","id":1918632,"avatar_url":"https://avatars.githubusercontent.com/u/1918632?v=3","gravatar_id":"","url":"https://api.github.com/users/declandewet","html_url":"https://github.com/declandewet","followers_url":"https://api.github.com/users/declandewet/followers","following_url":"https://api.github.com/users/declandewet/following{/other_user}","gists_url":"https://api.github.com/users/declandewet/gists{/gist_id}","starred_url":"https://api.github.com/users/declandewet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/declandewet/subscriptions","organizations_url":"https://api.github.com/users/declandewet/orgs","repos_url":"https://api.github.com/users/declandewet/repos","events_url":"https://api.github.com/users/declandewet/events{/privacy}","received_events_url":"https://api.github.com/users/declandewet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-17T09:33:21Z","updated_at":"2015-04-20T07:43:48Z","closed_at":null,"body":"I'm working on a project for a client, which involves categorised articles - each article needs to display 3 random articles from the same category underneath it's rendered content. I've found this is not possible with this extension, and think buffering the dynamic content info in-memory before each content file is rendered to HTML will help mitigate the issue.\r\n\r\nAs a workaround to this issue, I am loading the content in via AJAX and the JSON export feature, however this is not ideal as the client has requested this site to be functional on feature phones that do not support JavaScript.\r\n\r\nFor the purpose of this issue, I feel the need to exhibit a general idea of the directory structure for these articles:\r\n\r\n```\r\n./articles/\r\n----mama-to-mama/\r\n--------month-1.jade\r\n--------month-2.jade\r\n----baby/...\r\n----pregnancy/...\r\n```\r\n\r\nI've also created a few mockups that should help to better illustrate the problem:\r\n\r\nThis is the expected output/wanted functionality for a single article:\r\n![Imgur](http://i.imgur.com/XAqiqZp.png)\r\n\r\nThis is the *actual* output for each article:\r\n![Imgur](http://i.imgur.com/M1MkcRo.png)\r\n![Imgur](http://i.imgur.com/4OLpzwx.png)\r\n![Imgur](http://i.imgur.com/IPJmDV6.png)\r\n\r\nAs you can see, since each file is rendered one after the other, the information is not buffered in time for the rendered HTML to display all of the content. "},"comment":{"url":"https://api.github.com/repos/carrot/roots-dynamic-content/issues/comments/94382039","html_url":"https://github.com/carrot/roots-dynamic-content/issues/22#issuecomment-94382039","issue_url":"https://api.github.com/repos/carrot/roots-dynamic-content/issues/22","id":94382039,"user":{"login":"declandewet","id":1918632,"avatar_url":"https://avatars.githubusercontent.com/u/1918632?v=3","gravatar_id":"","url":"https://api.github.com/users/declandewet","html_url":"https://github.com/declandewet","followers_url":"https://api.github.com/users/declandewet/followers","following_url":"https://api.github.com/users/declandewet/following{/other_user}","gists_url":"https://api.github.com/users/declandewet/gists{/gist_id}","starred_url":"https://api.github.com/users/declandewet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/declandewet/subscriptions","organizations_url":"https://api.github.com/users/declandewet/orgs","repos_url":"https://api.github.com/users/declandewet/repos","events_url":"https://api.github.com/users/declandewet/events{/privacy}","received_events_url":"https://api.github.com/users/declandewet/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T07:43:47Z","updated_at":"2015-04-20T07:43:47Z","body":"Do you think it might be possible to read in the front matter first and at least make *that* available before the files are rendered out? It seems like for this kind of use case, having the content available is not really needed - but having the front matter available would definitely be handy so one could render out titles/dates/author/descriptions/etc"}}