{"action":"created","issue":{"url":"https://api.github.com/repos/luyadev/luya/issues/1118","repository_url":"https://api.github.com/repos/luyadev/luya","labels_url":"https://api.github.com/repos/luyadev/luya/issues/1118/labels{/name}","comments_url":"https://api.github.com/repos/luyadev/luya/issues/1118/comments","events_url":"https://api.github.com/repos/luyadev/luya/issues/1118/events","html_url":"https://github.com/luyadev/luya/issues/1118","id":196745459,"number":1118,"title":"Block Variation Configurable","user":{"login":"nadar","id":3417221,"avatar_url":"https://avatars.githubusercontent.com/u/3417221?v=3","gravatar_id":"","url":"https://api.github.com/users/nadar","html_url":"https://github.com/nadar","followers_url":"https://api.github.com/users/nadar/followers","following_url":"https://api.github.com/users/nadar/following{/other_user}","gists_url":"https://api.github.com/users/nadar/gists{/gist_id}","starred_url":"https://api.github.com/users/nadar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nadar/subscriptions","organizations_url":"https://api.github.com/users/nadar/orgs","repos_url":"https://api.github.com/users/nadar/repos","events_url":"https://api.github.com/users/nadar/events{/privacy}","received_events_url":"https://api.github.com/users/nadar/received_events","type":"User","site_admin":false},"labels":[{"id":277076587,"url":"https://api.github.com/repos/luyadev/luya/labels/architecture_to_be_discussed","name":"architecture_to_be_discussed","color":"A901DB","default":false}],"state":"open","locked":false,"assignee":{"login":"nadar","id":3417221,"avatar_url":"https://avatars.githubusercontent.com/u/3417221?v=3","gravatar_id":"","url":"https://api.github.com/users/nadar","html_url":"https://github.com/nadar","followers_url":"https://api.github.com/users/nadar/followers","following_url":"https://api.github.com/users/nadar/following{/other_user}","gists_url":"https://api.github.com/users/nadar/gists{/gist_id}","starred_url":"https://api.github.com/users/nadar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nadar/subscriptions","organizations_url":"https://api.github.com/users/nadar/orgs","repos_url":"https://api.github.com/users/nadar/repos","events_url":"https://api.github.com/users/nadar/events{/privacy}","received_events_url":"https://api.github.com/users/nadar/received_events","type":"User","site_admin":false},"assignees":[{"login":"nadar","id":3417221,"avatar_url":"https://avatars.githubusercontent.com/u/3417221?v=3","gravatar_id":"","url":"https://api.github.com/users/nadar","html_url":"https://github.com/nadar","followers_url":"https://api.github.com/users/nadar/followers","following_url":"https://api.github.com/users/nadar/following{/other_user}","gists_url":"https://api.github.com/users/nadar/gists{/gist_id}","starred_url":"https://api.github.com/users/nadar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nadar/subscriptions","organizations_url":"https://api.github.com/users/nadar/orgs","repos_url":"https://api.github.com/users/nadar/repos","events_url":"https://api.github.com/users/nadar/events{/privacy}","received_events_url":"https://api.github.com/users/nadar/received_events","type":"User","site_admin":false},{"login":"rolandschaub","id":3786245,"avatar_url":"https://avatars.githubusercontent.com/u/3786245?v=3","gravatar_id":"","url":"https://api.github.com/users/rolandschaub","html_url":"https://github.com/rolandschaub","followers_url":"https://api.github.com/users/rolandschaub/followers","following_url":"https://api.github.com/users/rolandschaub/following{/other_user}","gists_url":"https://api.github.com/users/rolandschaub/gists{/gist_id}","starred_url":"https://api.github.com/users/rolandschaub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolandschaub/subscriptions","organizations_url":"https://api.github.com/users/rolandschaub/orgs","repos_url":"https://api.github.com/users/rolandschaub/repos","events_url":"https://api.github.com/users/rolandschaub/events{/privacy}","received_events_url":"https://api.github.com/users/rolandschaub/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/luyadev/luya/milestones/20","html_url":"https://github.com/luyadev/luya/milestone/20","labels_url":"https://api.github.com/repos/luyadev/luya/milestones/20/labels","id":1837513,"number":20,"title":"1.0.0","description":"","creator":{"login":"nadar","id":3417221,"avatar_url":"https://avatars.githubusercontent.com/u/3417221?v=3","gravatar_id":"","url":"https://api.github.com/users/nadar","html_url":"https://github.com/nadar","followers_url":"https://api.github.com/users/nadar/followers","following_url":"https://api.github.com/users/nadar/following{/other_user}","gists_url":"https://api.github.com/users/nadar/gists{/gist_id}","starred_url":"https://api.github.com/users/nadar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nadar/subscriptions","organizations_url":"https://api.github.com/users/nadar/orgs","repos_url":"https://api.github.com/users/nadar/repos","events_url":"https://api.github.com/users/nadar/events{/privacy}","received_events_url":"https://api.github.com/users/nadar/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":21,"state":"open","created_at":"2016-06-20T08:18:37Z","updated_at":"2016-12-20T18:31:12Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-12-20T18:31:04Z","updated_at":"2016-12-21T12:43:10Z","closed_at":null,"body":"Some of the CMS blocks must have Variations in order to support multiple template schemas inside just one block.\r\n\r\nExample:\r\n\r\nThe paragraph block (Text Block) can be used within different contexts:\r\n\r\ncontext1:\r\n```html\r\n<p>$content</p>\r\n```\r\n\r\ncontext2:\r\n```html\r\n<div class=\"content\">\r\n    <p>$content</p>\r\n</div>\r\n```\r\n\r\nSo the user should have abilities to pick a variation for the matching use case.\r\n\r\nQuestions:\r\nShould the block render different templates or just predefined configuration variables (like a preset value for $class)"},"comment":{"url":"https://api.github.com/repos/luyadev/luya/issues/comments/268514304","html_url":"https://github.com/luyadev/luya/issues/1118#issuecomment-268514304","issue_url":"https://api.github.com/repos/luyadev/luya/issues/1118","id":268514304,"user":{"login":"nadar","id":3417221,"avatar_url":"https://avatars.githubusercontent.com/u/3417221?v=3","gravatar_id":"","url":"https://api.github.com/users/nadar","html_url":"https://github.com/nadar","followers_url":"https://api.github.com/users/nadar/followers","following_url":"https://api.github.com/users/nadar/following{/other_user}","gists_url":"https://api.github.com/users/nadar/gists{/gist_id}","starred_url":"https://api.github.com/users/nadar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nadar/subscriptions","organizations_url":"https://api.github.com/users/nadar/orgs","repos_url":"https://api.github.com/users/nadar/repos","events_url":"https://api.github.com/users/nadar/events{/privacy}","received_events_url":"https://api.github.com/users/nadar/received_events","type":"User","site_admin":false},"created_at":"2016-12-21T12:43:10Z","updated_at":"2016-12-21T12:43:10Z","body":"I think the variation should contain the variables and not the other way around.\r\n\r\n```\r\nvariation1 = ['var1' => 'this-value', 'var2' => 'other-value'];\r\nvariation2 = ['var1' => '....'],\r\n```"}}
{"actor":{"display_login":"nadar"}}