hooks/lib/android/webSiteHook.js
function readTemplate(projectRoot) {
  var filePath = path.join(projectRoot, WEB_HOOK_TPL_FILE_PATH);
  var tplData = null;

  try {
    tplData = fs.readFileSync(filePath, 'utf8');
  } catch (err) {
    console.warn('Template file for android web hook is not found!');
    console.warn(err);
  }

  return tplData;
}
function readTemplate(projectRoot) {
  var filePath = path.join(projectRoot, WEB_HOOK_TPL_FILE_PATH);
  var tplData = null;

  try {
    tplData = fs.readFileSync(filePath, 'utf8');
  } catch (err) {
    console.warn('Template file for android web hook is not found!');
    console.warn(err);
  }

  return tplData;
}
function readTemplate ( projectRoot ) { var filePath = path . join ( projectRoot , WEB_HOOK_TPL_FILE_PATH ) ; var tplData = null ; try { tplData = fs . readFileSync ( filePath , 'utf8' ) ; } catch ( err ) { console . warn ( 'Template file for android web hook is not found!' ) ; console . warn ( err ) ; } return tplData ; }
region Public API 
Read hook teplate from plugin directory.

@param {String} projectRoot - absolute path to cordova's project root
@return {String} data from the template file
region Public API Read hook teplate from plugin directory .