{"action":"created","issue":{"url":"https://api.github.com/repos/Code52/pretzel/issues/270","labels_url":"https://api.github.com/repos/Code52/pretzel/issues/270/labels{/name}","comments_url":"https://api.github.com/repos/Code52/pretzel/issues/270/comments","events_url":"https://api.github.com/repos/Code52/pretzel/issues/270/events","html_url":"https://github.com/Code52/pretzel/issues/270","id":113692146,"number":270,"title":"Render a page with a layout in a Pretzel plugin.","user":{"login":"k94ll13nn3","id":10998921,"avatar_url":"https://avatars.githubusercontent.com/u/10998921?v=3","gravatar_id":"","url":"https://api.github.com/users/k94ll13nn3","html_url":"https://github.com/k94ll13nn3","followers_url":"https://api.github.com/users/k94ll13nn3/followers","following_url":"https://api.github.com/users/k94ll13nn3/following{/other_user}","gists_url":"https://api.github.com/users/k94ll13nn3/gists{/gist_id}","starred_url":"https://api.github.com/users/k94ll13nn3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k94ll13nn3/subscriptions","organizations_url":"https://api.github.com/users/k94ll13nn3/orgs","repos_url":"https://api.github.com/users/k94ll13nn3/repos","events_url":"https://api.github.com/users/k94ll13nn3/events{/privacy}","received_events_url":"https://api.github.com/users/k94ll13nn3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-27T21:22:03Z","updated_at":"2015-10-28T06:46:56Z","closed_at":null,"body":"I am currently trying to create a category generator plugin for Pretzel and I am facing some problems. I understood that in order to generate files, I had to create a class that inherits `ITransform`. I am able to recover all the categories in my site with `siteContext.Categories` and create empty files according to each category.\r\n\r\nNext to that I have a `category_index.html` file in the `_layouts` folder that will be the layout for all my category pages. Thanks to that layout, i can manually create a category page by having a file with only the following content :\r\n```\r\n---\r\nlayout: category_index\r\ncategory: some_category\r\n---\r\n```\r\n\r\nThe problem is that I want my plugin to generate and render those files and I don't know how to do it. I tried to use some functions from `DotLiquid.Template` and I took a look at `JekyllEngineBase.cs` in order to understand the process but none of my attempts worked.\r\n\r\nIs there a way to render a page with a layout in a Pretzel plugin ?"},"comment":{"url":"https://api.github.com/repos/Code52/pretzel/issues/comments/151741231","html_url":"https://github.com/Code52/pretzel/issues/270#issuecomment-151741231","issue_url":"https://api.github.com/repos/Code52/pretzel/issues/270","id":151741231,"user":{"login":"laedit","id":871092,"avatar_url":"https://avatars.githubusercontent.com/u/871092?v=3","gravatar_id":"","url":"https://api.github.com/users/laedit","html_url":"https://github.com/laedit","followers_url":"https://api.github.com/users/laedit/followers","following_url":"https://api.github.com/users/laedit/following{/other_user}","gists_url":"https://api.github.com/users/laedit/gists{/gist_id}","starred_url":"https://api.github.com/users/laedit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laedit/subscriptions","organizations_url":"https://api.github.com/users/laedit/orgs","repos_url":"https://api.github.com/users/laedit/repos","events_url":"https://api.github.com/users/laedit/events{/privacy}","received_events_url":"https://api.github.com/users/laedit/received_events","type":"User","site_admin":false},"created_at":"2015-10-28T06:46:56Z","updated_at":"2015-10-28T06:46:56Z","body":"Another solution could be to add some extensibility points to `SiteContextGenerator`, before and after the posts/pages/tags/categories generation.\r\nThis would allow to add some pages/posts to the site context."}}