code: function expandSmartyPathAttr(content, tagName, attrName, file) {
      var attrReg = new RegExp('((?:^|\\s)' +
      her.util.pregQuote(attrName) +
      '\\s*=\\s*)(([\"\']).*?\\3)', 'ig');
  
      content = tagFilter.filterTag(content,
        tagName, smarty_left_delimiter, smarty_right_delimiter,
        function (outter, attr) {
  
          attr = attr.replace(attrReg,
            function (all, preCodeHolder, valueCodeHolder) {
              var info = her.util.stringQuote(valueCodeHolder);
              var path = info.rest;
              var ret = info.quote + her.uri.getId(path, file.dirname).id + info.quote;
              return preCodeHolder + ret;
            });
  
          outter = smarty_left_delimiter +
          tagName + attr +
          smarty_right_delimiter;
  
          return outter;
        });
  
      return content;
    }
docs: expand smarty template resource path