Re: [PHPTAL] SourceResolver path in nested macro

2010-08-06 Thread Kornel Lesiński

On 05-08-2010 at 20:44:45 Bas Kooij  wrote:


My current templates looks like this:

FILE main.xhtml:





FILE home.xhtml:










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.


That's by design. Resolver just needs to find the file, and PHPTAL will  
then look for the macro in it.


--
regards, Kornel

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


[PHPTAL] SourceResolver path in nested macro

2010-08-05 Thread Bas Kooij
Hello,

My current templates looks like this:

FILE main.xhtml:





FILE home.xhtml:










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