Closed carbontwelve closed 7 years ago
This was caused when a template extended another via the this->layout
method resulting in the default render
method getting executed without the File
getting passed along.
This is fixed by d0709ea67298bab5235644a3056ea2f369a22dfa
When executing the helper
$this->getUrl()
from a inherited (extended) template file Tapestry errors because the helper requires a File be set that doesn't exist.The template calling the parent should pass its
File
during the call so that anyFile
based helper within the extended template gets called on the originalFile
.This does raise a question of which
File
should be passed if there is a chain of inheritance, this is to be defined as the initiator of chainFile
, e.g:blog.md -> _views/blog -> _templates/default
, theFile
common to all should beblog.md
.A good place to begin looking is the
$this->layout
method.