Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Adds paragraphs between code blocks to prevent tabs #199

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions docs/book/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,11 @@ additional View Model, `$sidebarBlockView`, which will be captured to its
To better visualize this, let's look at what the final content might look like,
with comments detailing where each nested view model is injected.

Here are the templates, rendered based on a 12-column grid:
Here are the templates, rendered based on a 12-column grid.

The `content/article/view` template:

```php
<?php // "content/article/view" template ?>
<!-- This is from the $view View Model, and the "content/article/view" template -->
<div class="row content">
<?= $this->article ?>
Expand All @@ -274,35 +275,39 @@ Here are the templates, rendered based on a 12-column grid:
</div>
```

The `content/article` template:

```php
<?php // "content/article" template ?>
<!-- This is from the $articleView View Model, and the "content/article"
template -->
<article class="span8">
<?= $this->escapeHtml('article') ?>
</article>
```

The `content/main-sidebar` template:

```php
<?php // "content/main-sidebar" template ?>
<!-- This is from the $primarySidebarView View Model, and the
"content/main-sidebar" template -->
<div class="span2 sidebar">
sidebar content...
</div>
```

The `content/secondary-sidebar` template:

```php
<?php // "content/secondary-sidebar template ?>
<!-- This is from the $secondarySidebarView View Model, and the
"content/secondary-sidebar" template -->
<div class="span2 sidebar pull-right">
<?= $this->block ?>
</div>
```

The `content/block` template:

```php
<?php // "content/block template ?>
<!-- This is from the $sidebarBlockView View Model, and the
"content/block" template -->
<div class="block">
Expand Down