{"action":"closed","issue":{"url":"https://api.github.com/repos/foundersandcoders/express-handlebars-workshop/issues/5","repository_url":"https://api.github.com/repos/foundersandcoders/express-handlebars-workshop","labels_url":"https://api.github.com/repos/foundersandcoders/express-handlebars-workshop/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/foundersandcoders/express-handlebars-workshop/issues/5/comments","events_url":"https://api.github.com/repos/foundersandcoders/express-handlebars-workshop/issues/5/events","html_url":"https://github.com/foundersandcoders/express-handlebars-workshop/issues/5","id":250059986,"number":5,"title":"explanation of what layouts, partials & helpers are is very brief","user":{"login":"jsms90","id":15656538,"avatar_url":"https://avatars2.githubusercontent.com/u/15656538?v=4","gravatar_id":"","url":"https://api.github.com/users/jsms90","html_url":"https://github.com/jsms90","followers_url":"https://api.github.com/users/jsms90/followers","following_url":"https://api.github.com/users/jsms90/following{/other_user}","gists_url":"https://api.github.com/users/jsms90/gists{/gist_id}","starred_url":"https://api.github.com/users/jsms90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsms90/subscriptions","organizations_url":"https://api.github.com/users/jsms90/orgs","repos_url":"https://api.github.com/users/jsms90/repos","events_url":"https://api.github.com/users/jsms90/events{/privacy}","received_events_url":"https://api.github.com/users/jsms90/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-14T15:07:25Z","updated_at":"2018-02-09T21:49:13Z","closed_at":"2018-02-09T21:49:13Z","author_association":"MEMBER","body":"Students need a stronger high-level explanation of what these elements of a templating engine actually are, in order to then understand the tasks that are being asked of them\r\n\r\n> + layouts (i.e. base templates)\r\n> + partials (smaller templates within templates) and\r\n> + helpers (functions used in templates to manipulate data) to ultimately render views.\r\n\r\nGive examples based on the existing code, after having set the scene #3 \r\n\r\n\r\n\r\nYou want to display your fruit in a similar way, with the same structure (HTML) and styling (CSS). Without templates, you would have to write out a file for every different type of fruit - see [public/fruits](https://github.com/foundersandcoders/express-handlebars-workshop/tree/master/public/fruits)\r\n\r\nTemplates allow you to keep your code DRY, by making just one file (i.e. a \"template\" called `fruit.html`). You can then populate this single HTML file with different content, depending on the fruit type."}}
{"actor":{"display_login":"astroash"}}