weierophinney/phly_mustache — Issue #2: Partial aliasing
Author: al3d
Created: 2012-02-02 21:11:48+00:00
State: open

Thanks for writing this package. I'm having trouble aliasing partials and I'm wondering whether or not the documentation in the readme is correct:

```php
$mustache->render($template, array(
'winnings' => 'user-winnings',
));
```

I wonder if it should it be:

```php
$view = array();
$mustache->render($template, $view, array(
'winnings' => 'user-winnings',
));
```
I'm putting a partial as a variable - is that the correct way to do it?

```html

{{>partial-name}}

```

```php
$view = array(
'partial-name' => 'another-template'
);
$mustache->render($template, $view);
```

I run into a `Phly\Mustache\Exception\TemplateNotFoundException` when I do that

Thanks in advance