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

Commit

Permalink
Merge branch 'docs/199' into develop
Browse files Browse the repository at this point in the history
Forward port #199
  • Loading branch information
michalbundyra committed Oct 24, 2019
2 parents dca8531 + b8a2225 commit 5e98744
Showing 1 changed file with 11 additions and 6 deletions.
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

0 comments on commit 5e98744

Please sign in to comment.