{"action":"created","comment":{"url":"https://api.github.com/repos/laravel-taiwan/docs/pulls/comments/33888988","id":33888988,"diff_hunk":"@@ -12,25 +12,25 @@\n <a name=\"introduction\"></a>\n ## 簡介\n \n-Blade 模板是 Laravel 所提供的簡單且強大的模板引擎。相較於其它知名的 PHP 模板引擎， Blade 並不會限制你必須在視圖中使用 PHP 程式碼。在 Blade 被修改之前，所有的視圖都會被轉換（ compiled ）為普通的 PHP 程式碼並產生快取，這代表著 Blade 視圖基本上對於整個系統而言並不會增加太多負擔。Blade 視圖檔案使用 `.blade.php` 做為副檔名，並儲存於 `resources/views` 資料夾。\n+Blade 模板是 Laravel 所提供的簡單且強大的模板引擎。相較於其它知名的 PHP 模板引擎， Blade 並不會限制你必須在視圖中使用 PHP 程式碼。在 Blade 被修改之前，所有的視圖都會被轉換為普通的 PHP 程式碼並產生快取，這代表著 Blade 視圖基本上對於整個系統而言並不會增加太多負擔。Blade 視圖檔案使用 `.blade.php` 做為副檔名，並儲存於 `resources/views` 資料夾。\n \n <a name=\"template-inheritance\"></a>\n-## 模板繼承（ template inheritance ）\n+## 模板繼承\n \n <a name=\"defining-a-layout\"></a>\n-### 定義視圖輸出\n+### 定義頁面佈局\n \n-Blade 模板具有兩個主要優點： _模板繼承（ template inheritance）_ 與 _區塊（ sections ）_。從下面的 Blade 模板範例開始：首先，我們確認一下 \"master\" 這個頁面的輸出，由於大多數的網頁應用程式在不同頁面都保持著相同的佈局方式，用以下方式即可定義單一 Blade 模板輸出。\n+使用 Blade 模板的兩個主要優點為_模板繼承_與_區塊_。從下方的 Blade 模板範例開始。首先，我們確認一下「master」的頁面佈局。由於大多數的網頁應用程式在不同頁面都保持著相同的佈局方式，用以下方式即可簡單的將佈局定義為單一的 Blade 模板視圖。\n \n \t<!-- 檔案儲存於 resources/views/layouts/master.blade.php -->\n \n \t<html>\n \t\t<head>\n-\t\t\t<title>App Name - @yield('title')</title>\n+\t\t\t<title>應用程式名稱 - @yield('title')</title>\n \t\t</head>\n \t\t<body>\n \t\t\t@section('sidebar')\n-\t\t\t\tThis is the master sidebar.\n+\t\t\t\t這是 master 的側邊欄。","path":"blade.md","position":41,"original_position":41,"commit_id":"7e7c0afdbae4c4b6f93d37d1974ae34e4437d9c6","original_commit_id":"7e7c0afdbae4c4b6f93d37d1974ae34e4437d9c6","user":{"login":"chentsulin","id":3382565,"avatar_url":"https://avatars.githubusercontent.com/u/3382565?v=3","gravatar_id":"","url":"https://api.github.com/users/chentsulin","html_url":"https://github.com/chentsulin","followers_url":"https://api.github.com/users/chentsulin/followers","following_url":"https://api.github.com/users/chentsulin/following{/other_user}","gists_url":"https://api.github.com/users/chentsulin/gists{/gist_id}","starred_url":"https://api.github.com/users/chentsulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chentsulin/subscriptions","organizations_url":"https://api.github.com/users/chentsulin/orgs","repos_url":"https://api.github.com/users/chentsulin/repos","events_url":"https://api.github.com/users/chentsulin/events{/privacy}","received_events_url":"https://api.github.com/users/chentsulin/received_events","type":"User","site_admin":false},"body":"master 應該也要翻 => 主要的","created_at":"2015-07-04T17:47:08Z","updated_at":"2015-07-04T17:47:08Z","html_url":"https://github.com/laravel-taiwan/docs/pull/181#discussion_r33888988","pull_request_url":"https://api.github.com/repos/laravel-taiwan/docs/pulls/181","_links":{"self":{"href":"https://api.github.com/repos/laravel-taiwan/docs/pulls/comments/33888988"},"html":{"href":"https://github.com/laravel-taiwan/docs/pull/181#discussion_r33888988"},"pull_request":{"href":"https://api.github.com/repos/laravel-taiwan/docs/pulls/181"}}},"pull_request":{"url":"https://api.github.com/repos/laravel-taiwan/docs/pulls/181","id":38997629,"html_url":"https://github.com/laravel-taiwan/docs/pull/181","diff_url":"https://github.com/laravel-taiwan/docs/pull/181.diff","patch_url":"https://github.com/laravel-taiwan/docs/pull/181.patch","issue_url":"https://api.github.com/repos/laravel-taiwan/docs/issues/181","number":181,"state":"open","locked":false,"title":"Update blade.md","user":{"login":"jigsawye","id":8567270,"avatar_url":"https://avatars.githubusercontent.com/u/8567270?v=3","gravatar_id":"","url":"https://api.github.com/users/jigsawye","html_url":"https://github.com/jigsawye","followers_url":"https://api.github.com/users/jigsawye/followers","following_url":"https://api.github.com/users/jigsawye/following{/other_user}","gists_url":"https://api.github.com/users/jigsawye/gists{/gist_id}","starred_url":"https://api.github.com/users/jigsawye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jigsawye/subscriptions","organizations_url":"https://api.github.com/users/jigsawye/orgs","repos_url":"https://api.github.com/users/jigsawye/repos","events_url":"https://api.github.com/users/jigsawye/events{/privacy}","received_events_url":"https://api.github.com/users/jigsawye/received_events","type":"User","site_admin":false},"body":"對應原文更新翻譯並移除多餘的部分，讓翻譯與原文的行數正確對應。","created_at":"2015-07-01T16:01:05Z","updated_at":"2015-07-04T17:47:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2d5893e8453c7ab7eefa2e084d85c9791b56dd09","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/laravel-taiwan/docs/pulls/181/commits","review_comments_url":"https://api.github.com/repos/laravel-taiwan/docs/pulls/181/comments","review_comment_url":"https://api.github.com/repos/laravel-taiwan/docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/laravel-taiwan/docs/issues/181/comments","statuses_url":"https://api.github.com/repos/laravel-taiwan/docs/statuses/7e7c0afdbae4c4b6f93d37d1974ae34e4437d9c6","head":{"label":"jigsawye:5.1-blade-fix","ref":"5.1-blade-fix","sha":"7e7c0afdbae4c4b6f93d37d1974ae34e4437d9c6","user":{"login":"jigsawye","id":8567270,"avatar_url":"https://avatars.githubusercontent.com/u/8567270?v=3","gravatar_id":"","url":"https://api.github.com/users/jigsawye","html_url":"https://github.com/jigsawye","followers_url":"https://api.github.com/users/jigsawye/followers","following_url":"https://api.github.com/users/jigsawye/following{/other_user}","gists_url":"https://api.github.com/users/jigsawye/gists{/gist_id}","starred_url":"https://api.github.com/users/jigsawye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jigsawye/subscriptions","organizations_url":"https://api.github.com/users/jigsawye/orgs","repos_url":"https://api.github.com/users/jigsawye/repos","events_url":"https://api.github.com/users/jigsawye/events{/privacy}","received_events_url":"https://api.github.com/users/jigsawye/received_events","type":"User","site_admin":false},"repo":{"id":30403605,"name":"docs","full_name":"jigsawye/docs","owner":{"login":"jigsawye","id":8567270,"avatar_url":"https://avatars.githubusercontent.com/u/8567270?v=3","gravatar_id":"","url":"https://api.github.com/users/jigsawye","html_url":"https://github.com/jigsawye","followers_url":"https://api.github.com/users/jigsawye/followers","following_url":"https://api.github.com/users/jigsawye/following{/other_user}","gists_url":"https://api.github.com/users/jigsawye/gists{/gist_id}","starred_url":"https://api.github.com/users/jigsawye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jigsawye/subscriptions","organizations_url":"https://api.github.com/users/jigsawye/orgs","repos_url":"https://api.github.com/users/jigsawye/repos","events_url":"https://api.github.com/users/jigsawye/events{/privacy}","received_events_url":"https://api.github.com/users/jigsawye/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jigsawye/docs","description":"The Laravel Framework Documentation","fork":true,"url":"https://api.github.com/repos/jigsawye/docs","forks_url":"https://api.github.com/repos/jigsawye/docs/forks","keys_url":"https://api.github.com/repos/jigsawye/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jigsawye/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jigsawye/docs/teams","hooks_url":"https://api.github.com/repos/jigsawye/docs/hooks","issue_events_url":"https://api.github.com/repos/jigsawye/docs/issues/events{/number}","events_url":"https://api.github.com/repos/jigsawye/docs/events","assignees_url":"https://api.github.com/repos/jigsawye/docs/assignees{/user}","branches_url":"https://api.github.com/repos/jigsawye/docs/branches{/branch}","tags_url":"https://api.github.com/repos/jigsawye/docs/tags","blobs_url":"https://api.github.com/repos/jigsawye/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jigsawye/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jigsawye/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/jigsawye/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jigsawye/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/jigsawye/docs/languages","stargazers_url":"https://api.github.com/repos/jigsawye/docs/stargazers","contributors_url":"https://api.github.com/repos/jigsawye/docs/contributors","subscribers_url":"https://api.github.com/repos/jigsawye/docs/subscribers","subscription_url":"https://api.github.com/repos/jigsawye/docs/subscription","commits_url":"https://api.github.com/repos/jigsawye/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/jigsawye/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/jigsawye/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/jigsawye/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/jigsawye/docs/contents/{+path}","compare_url":"https://api.github.com/repos/jigsawye/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jigsawye/docs/merges","archive_url":"https://api.github.com/repos/jigsawye/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jigsawye/docs/downloads","issues_url":"https://api.github.com/repos/jigsawye/docs/issues{/number}","pulls_url":"https://api.github.com/repos/jigsawye/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/jigsawye/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/jigsawye/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jigsawye/docs/labels{/name}","releases_url":"https://api.github.com/repos/jigsawye/docs/releases{/id}","created_at":"2015-02-06T08:55:47Z","updated_at":"2015-02-05T16:59:15Z","pushed_at":"2015-07-01T15:44:40Z","git_url":"git://github.com/jigsawye/docs.git","ssh_url":"git@github.com:jigsawye/docs.git","clone_url":"https://github.com/jigsawye/docs.git","svn_url":"https://github.com/jigsawye/docs","homepage":null,"size":4801,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"5.1"}},"base":{"label":"laravel-taiwan:5.1","ref":"5.1","sha":"7e972257add427056de2913f538de1bf6e3a58e3","user":{"login":"laravel-taiwan","id":6195619,"avatar_url":"https://avatars.githubusercontent.com/u/6195619?v=3","gravatar_id":"","url":"https://api.github.com/users/laravel-taiwan","html_url":"https://github.com/laravel-taiwan","followers_url":"https://api.github.com/users/laravel-taiwan/followers","following_url":"https://api.github.com/users/laravel-taiwan/following{/other_user}","gists_url":"https://api.github.com/users/laravel-taiwan/gists{/gist_id}","starred_url":"https://api.github.com/users/laravel-taiwan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravel-taiwan/subscriptions","organizations_url":"https://api.github.com/users/laravel-taiwan/orgs","repos_url":"https://api.github.com/users/laravel-taiwan/repos","events_url":"https://api.github.com/users/laravel-taiwan/events{/privacy}","received_events_url":"https://api.github.com/users/laravel-taiwan/received_events","type":"Organization","site_admin":false},"repo":{"id":15297985,"name":"docs","full_name":"laravel-taiwan/docs","owner":{"login":"laravel-taiwan","id":6195619,"avatar_url":"https://avatars.githubusercontent.com/u/6195619?v=3","gravatar_id":"","url":"https://api.github.com/users/laravel-taiwan","html_url":"https://github.com/laravel-taiwan","followers_url":"https://api.github.com/users/laravel-taiwan/followers","following_url":"https://api.github.com/users/laravel-taiwan/following{/other_user}","gists_url":"https://api.github.com/users/laravel-taiwan/gists{/gist_id}","starred_url":"https://api.github.com/users/laravel-taiwan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravel-taiwan/subscriptions","organizations_url":"https://api.github.com/users/laravel-taiwan/orgs","repos_url":"https://api.github.com/users/laravel-taiwan/repos","events_url":"https://api.github.com/users/laravel-taiwan/events{/privacy}","received_events_url":"https://api.github.com/users/laravel-taiwan/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/laravel-taiwan/docs","description":"Laravel Framework 繁體中文文件","fork":true,"url":"https://api.github.com/repos/laravel-taiwan/docs","forks_url":"https://api.github.com/repos/laravel-taiwan/docs/forks","keys_url":"https://api.github.com/repos/laravel-taiwan/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/laravel-taiwan/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/laravel-taiwan/docs/teams","hooks_url":"https://api.github.com/repos/laravel-taiwan/docs/hooks","issue_events_url":"https://api.github.com/repos/laravel-taiwan/docs/issues/events{/number}","events_url":"https://api.github.com/repos/laravel-taiwan/docs/events","assignees_url":"https://api.github.com/repos/laravel-taiwan/docs/assignees{/user}","branches_url":"https://api.github.com/repos/laravel-taiwan/docs/branches{/branch}","tags_url":"https://api.github.com/repos/laravel-taiwan/docs/tags","blobs_url":"https://api.github.com/repos/laravel-taiwan/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/laravel-taiwan/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/laravel-taiwan/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/laravel-taiwan/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/laravel-taiwan/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/laravel-taiwan/docs/languages","stargazers_url":"https://api.github.com/repos/laravel-taiwan/docs/stargazers","contributors_url":"https://api.github.com/repos/laravel-taiwan/docs/contributors","subscribers_url":"https://api.github.com/repos/laravel-taiwan/docs/subscribers","subscription_url":"https://api.github.com/repos/laravel-taiwan/docs/subscription","commits_url":"https://api.github.com/repos/laravel-taiwan/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/laravel-taiwan/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/laravel-taiwan/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/laravel-taiwan/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/laravel-taiwan/docs/contents/{+path}","compare_url":"https://api.github.com/repos/laravel-taiwan/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/laravel-taiwan/docs/merges","archive_url":"https://api.github.com/repos/laravel-taiwan/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/laravel-taiwan/docs/downloads","issues_url":"https://api.github.com/repos/laravel-taiwan/docs/issues{/number}","pulls_url":"https://api.github.com/repos/laravel-taiwan/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/laravel-taiwan/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/laravel-taiwan/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/laravel-taiwan/docs/labels{/name}","releases_url":"https://api.github.com/repos/laravel-taiwan/docs/releases{/id}","created_at":"2013-12-19T00:42:13Z","updated_at":"2015-06-24T07:42:31Z","pushed_at":"2015-07-03T12:53:36Z","git_url":"git://github.com/laravel-taiwan/docs.git","ssh_url":"git@github.com:laravel-taiwan/docs.git","clone_url":"https://github.com/laravel-taiwan/docs.git","svn_url":"https://github.com/laravel-taiwan/docs","homepage":"http://laravel.tw/docs/","size":6072,"stargazers_count":44,"watchers_count":44,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":3,"forks":38,"open_issues":3,"watchers":44,"default_branch":"5.1"}},"_links":{"self":{"href":"https://api.github.com/repos/laravel-taiwan/docs/pulls/181"},"html":{"href":"https://github.com/laravel-taiwan/docs/pull/181"},"issue":{"href":"https://api.github.com/repos/laravel-taiwan/docs/issues/181"},"comments":{"href":"https://api.github.com/repos/laravel-taiwan/docs/issues/181/comments"},"review_comments":{"href":"https://api.github.com/repos/laravel-taiwan/docs/pulls/181/comments"},"review_comment":{"href":"https://api.github.com/repos/laravel-taiwan/docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/laravel-taiwan/docs/pulls/181/commits"},"statuses":{"href":"https://api.github.com/repos/laravel-taiwan/docs/statuses/7e7c0afdbae4c4b6f93d37d1974ae34e4437d9c6"}}}}