{"action":"created","issue":{"url":"https://api.github.com/repos/Shopify/slate/issues/749","repository_url":"https://api.github.com/repos/Shopify/slate","labels_url":"https://api.github.com/repos/Shopify/slate/issues/749/labels{/name}","comments_url":"https://api.github.com/repos/Shopify/slate/issues/749/comments","events_url":"https://api.github.com/repos/Shopify/slate/issues/749/events","html_url":"https://github.com/Shopify/slate/issues/749","id":359661273,"node_id":"MDU6SXNzdWUzNTk2NjEyNzM=","number":749,"title":"Keep section {schema} in a .json file so that it can be imported into multiple sections","user":{"login":"isaac-martin","id":8649366,"node_id":"MDQ6VXNlcjg2NDkzNjY=","avatar_url":"https://avatars2.githubusercontent.com/u/8649366?v=4","gravatar_id":"","url":"https://api.github.com/users/isaac-martin","html_url":"https://github.com/isaac-martin","followers_url":"https://api.github.com/users/isaac-martin/followers","following_url":"https://api.github.com/users/isaac-martin/following{/other_user}","gists_url":"https://api.github.com/users/isaac-martin/gists{/gist_id}","starred_url":"https://api.github.com/users/isaac-martin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isaac-martin/subscriptions","organizations_url":"https://api.github.com/users/isaac-martin/orgs","repos_url":"https://api.github.com/users/isaac-martin/repos","events_url":"https://api.github.com/users/isaac-martin/events{/privacy}","received_events_url":"https://api.github.com/users/isaac-martin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-12T21:34:27Z","updated_at":"2018-09-17T14:07:37Z","closed_at":null,"author_association":"NONE","body":"### Problem\r\nI have two product templates.\r\n`product.one.liquid` 'product.two.liquid`\r\n\r\nThese templates have a shared snippet called `ingredients` where the data cames from the blocks set up in sections `product-one.liquid` 'product-two.liquid`\r\n\r\nThe schema for these sections is going to be the same, but I need them as separate sections as the data is going to be different per section (unless someone has a better method for handling this). In the interest of DRY I am wondering if there is a way to keep my schema definition in a separate file and import it into the section when the theme compiles? \r\n\r\nThe templates load the corresponding product section, and the section ideally loads the schema from `data/ingredientsSchema` and the snippet from `snippets/ingredients` to render the schema data.\r\n\r\n```\r\nsections\r\n - product.one.liquid\r\n - product.two.liquid\r\ntemplates\r\n - product.one.liquid\r\n - product.two.liquid\r\nsnippets\r\n - ingredients\r\ndata\r\n - ingredientsSchema.json\r\n```\r\n\r\nI saw there is an issue #467 which I guess is a little similar. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Shopify/slate/issues/comments/422031097","html_url":"https://github.com/Shopify/slate/issues/749#issuecomment-422031097","issue_url":"https://api.github.com/repos/Shopify/slate/issues/749","id":422031097,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjAzMTA5Nw==","user":{"login":"isaac-martin","id":8649366,"node_id":"MDQ6VXNlcjg2NDkzNjY=","avatar_url":"https://avatars2.githubusercontent.com/u/8649366?v=4","gravatar_id":"","url":"https://api.github.com/users/isaac-martin","html_url":"https://github.com/isaac-martin","followers_url":"https://api.github.com/users/isaac-martin/followers","following_url":"https://api.github.com/users/isaac-martin/following{/other_user}","gists_url":"https://api.github.com/users/isaac-martin/gists{/gist_id}","starred_url":"https://api.github.com/users/isaac-martin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isaac-martin/subscriptions","organizations_url":"https://api.github.com/users/isaac-martin/orgs","repos_url":"https://api.github.com/users/isaac-martin/repos","events_url":"https://api.github.com/users/isaac-martin/events{/privacy}","received_events_url":"https://api.github.com/users/isaac-martin/received_events","type":"User","site_admin":false},"created_at":"2018-09-17T14:07:37Z","updated_at":"2018-09-17T14:07:37Z","author_association":"NONE","body":"Going to assume this isn't possible. Messed around all weekend, did some research but nothing good. Any tips @t-kelly "}}
{"actor":{"display_login":"isaac-martin"}}