To do this, you want to build an HTML string. If you want markup that looks like:<a href="http://www.server.com/path/file.txt">link text</a>
and you have an attributes object that looks like:
{
"path": "some-web-server-folder",
"file": "data"
}
You would do this:
var anchor = "<a href='http://www.server.com/" + attr.path + "/" + app.file + ".txt'>link text</a>";
Managing those single and double quotes can get unwieldy. If you're building big strings, check out dojo.string.substitute to use templates which usually results in cleaner code.