Source: site.view [edit]
Function name: getTargetPages
Arguments: sourceTitle,sourceURL
Description:
Page type: snippet
Render function:  
Module: sandbox

Page source:

<webl>
var BinaryTags = WubCall("sandbox.binaryTags", []);
var Res = "<h1>Matches for <a href=\"" + sourceURL + "\">" + sourceTitle + "</a></h1><br><br><br>";
//<a href=\"" + BinaryTag.sourceURL + "\">" + BinaryTag.sourceTitle + "</a><br><br>";
every BinaryTag in BinaryTags do
  if (Str_EqualsIgnoreCase(sourceTitle, BinaryTag.sourceTitle) or
     Str_EqualsIgnoreCase(sourceURL, BinaryTag.sourceURL))  then Res = Res + BinaryTag.tag + ": <a href=\"" + BinaryTag.targetURL + "\">" + BinaryTag.targetTitle + "</a><br><br>";
  end;
end;
Res;
</webl>