file-attr: new function to make symbolic attribute lookups easier
file-format/template-get: use file-attr to do the lookup