Hello,

My current templates looks like this:

FILE main.xhtml:

<html metal:define-macro="main">
    <tal:block metal:define-slot="page" />
</html>

FILE home.xhtml:

<tal:block metal:use-macro="main.xhtml/main">
    <tal:block metal:fill-slot="page">

        <tal:block metal:use-macro="customMacro" />

    </tal:block>
</tal:block>


I have a custom SourceResolver like this:

class MySourceResolver implements PHPTAL_SourceResolver {
    public function resolve($path) {
        echo $path;
    }
}

However, this SourceResolver only echo's the path 'home.xhtml', I never get the 
vaule ´customMacro´. Am I doing something wrong here, or is this impossible or 
a 
bug?

I tried the latest beta too btw, with the same results.


_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to