%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /data/old/usr/lib/node_modules/hexo/lib/theme/processors/
Upload File :
Create Path :
Current File : //data/old/usr/lib/node_modules/hexo/lib/theme/processors/view.js

'use strict';

const { Pattern } = require('hexo-util');

exports.process = file => {
  const { path } = file.params;

  if (file.type === 'delete') {
    file.box.removeView(path);
    return;
  }

  return file.read().then(result => {
    file.box.setView(path, result);
  });
};

exports.pattern = new Pattern('layout/*path');

Zerion Mini Shell 1.0