UNPKG

hexo-tag-mmedia-0.x

Version:
24 lines (18 loc) 536 B
const generateRandomString = require("../util").generateRandomString; const Config = require("../config"), throwError = require("../util").throwError; class BaseTag { constructor(hexo, args) { this.hexo = hexo; this.config = new Config(hexo); this.mmediaId = generateRandomString(8); this.tagId = `mmedia-${this.mmediaId}`; } parse() { throwError("Unimplemented method: parse"); } generate() { throwError("Unimplemented method: generate"); } } module.exports = BaseTag;