happyninjas/lex — Issue #2: Parsing Callbacks with Naming Conflicts
Author: adamfairholm
Created: 2011-11-08 17:00:53+00:00
State: open

Hey Dan,

I don't know if this is possible, but here is an example how I'm using Lex in PyroStreams:

```{{ entries }}

{{ name }}

{{ streams:related entry="{{ id }}" field="artists" }}

{{ name }}

{{ /streams:related }}

{{ /entries }}```

I'm using parse_variables() to parse the $this->conent() from a plugin. As you can see, I'm calling the name var inside of the entries tags, and it is getting replaced by the parent entries loop value instead of the one from streams:related.

The solution is to just not have naming conflicts, so I can make that happen, but I wanted to see if it was possible to stop vars from parsing instead of callback chunks in this way.

Adam