I know about this and this, but the answers are very strange, and in any case, I am looking to understand why this particular approach does not work:
@myPackage.views.html.ol(
{
Hello
}, {
World
}
)
myPackage.views.html.ol.scala.html
@(ol:Html*)
<ol>
@for(li <- ol) {
<li>
(hi)
<span class="li-body">@li</span>
</li>
}
</ol>
Error:
not found: value Hello
I must lack fundamental understanding about the rules of the template engine, because this seems intuitively correct to me.