lib/transform.js
function rPath (htmlyFile, sourceFilepath) {
  htmlyFile = pathResolve(__dirname, htmlyFile)
  htmlyFile = pathRelative(dirname(sourceFilepath), htmlyFile)
  htmlyFile = slash(htmlyFile)
  if (!/^(\.|\/)/.test(htmlyFile)) {
    return './' + htmlyFile
  } else {
    return htmlyFile
  }
}
function rPath (htmlyFile, sourceFilepath) {
  htmlyFile = pathResolve(__dirname, htmlyFile)
  htmlyFile = pathRelative(dirname(sourceFilepath), htmlyFile)
  htmlyFile = slash(htmlyFile)
  if (!/^(\.|\/)/.test(htmlyFile)) {
    return './' + htmlyFile
  } else {
    return htmlyFile
  }
}
function rPath ( htmlyFile , sourceFilepath ) { htmlyFile = pathResolve ( __dirname , htmlyFile ) htmlyFile = pathRelative ( dirname ( sourceFilepath ) , htmlyFile ) htmlyFile = slash ( htmlyFile ) if ( ! / ^(\.|\/) / . test ( htmlyFile ) ) { return './' + htmlyFile } else { return htmlyFile } }
Generate a relative path to a htmly file, relative to source file

@param {string} htmlyFile
Path relative to current module

@param {string} sourceFilepath
The source filepath

@return {string}
A relative path to htmlyFile from a transformed source
Generate a relative path to a htmly file relative to source file