Question: I have this simple piece of code, that replace the `ng-include` tag with a proper template based on the button that I click (here is the [Plunker](http://plnkr.co/edit/KqwP07fDZSZta9Kiswc6?p=preview)):

```
<button ng-click="template='page1'">Show Page 1 Content</button>
<button ng-click="template='page2'">Show Page 2 Content</button>

<ng-include src="template"></ng-include>

<script type="text/ng-template" id="page1">
  <h1 style="color: blue;">This is the page 1 content</h1>
</script>

<script type="text/ng-template" id="page2">
  <div id="testanglr" ng-controller="PhoneListCtrl">
    <ul>
      <li ng-repeat="phone in phones">
        <span>{{phone.name}}</span>
        <p>{{phone.snippet}}</p>
      </li>
    </ul>
  </div>
</script>

```

What I want to do is to replicate the same behaviour of *Show Page 2 Content* button with a javascript function (rather than Angular's HTML helper tag). 
Regarding the Plunker linked above, I would that the third button will act exactly as the second button, but this behavior should be executed inside the `onClickHandler` function in place of alert.

Answer: 
It looks like the problem is somehow with the version of plugin that is available in the typesafe repo:

I've built the plugin from sources, published it to my local repository and then everything compiled fine.

In the `build.sbt` of the sample app there is:

```
resolvers += Resolver.file("LocalIvy", file(Path.userHome + File.separator + ".ivy2" + File.separator + "local"))(Resolver.ivyStylePatterns)

```

So it looks like the authors also had problems in compiling the app using the plugin deployed to the official repository.

UPDATE:
Well, it compiled fine, but then failed at runtime with `java.lang.ClassNotFoundException: com.typesafe.plugin.CommonsMailerPlugin`

UPDATE 2:
The sample `play.plugins` is also wrong, the correct one should be:

```
1500:play.api.libs.mailer.CommonsMailerPlugin

```

and then eveyrthing finally works
The README is up to date with the latest development (upcoming version). 
As of 19/12/2014, the latest version released and available in the Typesafe repository is 2.3.1. If you want to use this version you need to refer to the README in the v2.3.1 tag: <https://github.com/playframework/play-mailer/tree/v2.3.1>

For the upcoming version we have decided to break compatibility to move the Play mailer into its own package and provide a better implementation. That's the reason why the documentation in the master branch is not working with version 2.3.1.