utility/aliased/aliased_protocol.js
function () {
  /**
   * Get a valid file path for a template file from a set of directories
   * @param  {Object}   opts     Configurable options (see periodicjs.core.protocols for more details)
   * @param {string} [opts.extname] Periodic extension that may contain view file
   * @param {string} opts.viewname Name of the template file
   * @param {string} [opts.themefileext="periodicjs.theme.default"] Periodic theme that may contain view file
   * @param {string} [opts.viewfileext=".ejs"] File extension type
   * @param  {Function} callback Callback function
   * @return {Object}          Returns a Promise which resolves with file path if cb argument is not passed
   */
  let fn = function getPluginViewDefaultTemplate (opts = {}, callback) {
    let { extname, viewname, themefileext, viewfileext } = opts;
    let themename = this.theme;
    let fileext = (typeof themefileext === 'string') ? themefileext : viewfileext;
    return this._utility_responder.render({}, Object.assign(opts, { themename, fileext, resolve_filepath: true }), callback);
  };
  let message = 'CoreController.getPluginViewDefaultTemplate: Use CoreController.responder.render with a HTML adapter or CoreController._utility_responder.render instead';
  return wrapWithDeprecationWarning.call(this, fn, message);
}
function () {
  /**
   * Get a valid file path for a template file from a set of directories
   * @param  {Object}   opts     Configurable options (see periodicjs.core.protocols for more details)
   * @param {string} [opts.extname] Periodic extension that may contain view file
   * @param {string} opts.viewname Name of the template file
   * @param {string} [opts.themefileext="periodicjs.theme.default"] Periodic theme that may contain view file
   * @param {string} [opts.viewfileext=".ejs"] File extension type
   * @param  {Function} callback Callback function
   * @return {Object}          Returns a Promise which resolves with file path if cb argument is not passed
   */
  let fn = function getPluginViewDefaultTemplate (opts = {}, callback) {
    let { extname, viewname, themefileext, viewfileext } = opts;
    let themename = this.theme;
    let fileext = (typeof themefileext === 'string') ? themefileext : viewfileext;
    return this._utility_responder.render({}, Object.assign(opts, { themename, fileext, resolve_filepath: true }), callback);
  };
  let message = 'CoreController.getPluginViewDefaultTemplate: Use CoreController.responder.render with a HTML adapter or CoreController._utility_responder.render instead';
  return wrapWithDeprecationWarning.call(this, fn, message);
}
function ( ) { /**
   * Get a valid file path for a template file from a set of directories
   * @param  {Object}   opts     Configurable options (see periodicjs.core.protocols for more details)
   * @param {string} [opts.extname] Periodic extension that may contain view file
   * @param {string} opts.viewname Name of the template file
   * @param {string} [opts.themefileext="periodicjs.theme.default"] Periodic theme that may contain view file
   * @param {string} [opts.viewfileext=".ejs"] File extension type
   * @param  {Function} callback Callback function
   * @return {Object}          Returns a Promise which resolves with file path if cb argument is not passed
   */ let fn = function getPluginViewDefaultTemplate ( opts = { } , callback ) { let { extname , viewname , themefileext , viewfileext } = opts ; let themename = this . theme ; let fileext = ( typeof themefileext === 'string' ) ? themefileext : viewfileext ; return this . _utility_responder . render ( { } , Object . assign ( opts , { themename , fileext , resolve_filepath : true } ) , callback ) ; } ; let message = 'CoreController.getPluginViewDefaultTemplate: Use CoreController.responder.render with a HTML adapter or CoreController._utility_responder.render instead' ; return wrapWithDeprecationWarning . call ( this , fn , message ) ; }
Creates a function that will resolve a template file path from a set of directories. Alias for CoreController._utility_responder.render
@return {Function} A function that will resolve a valid file path for a template
Creates a function that will resolve a template file path from a set of directories . Alias for CoreController . _utility_responder . render