Add a $p implicit variable to mark the path to current dep.
Add documentation for $p