hexo-tag-mmedia-0.x
Version:
A media tag for Hexo
24 lines (18 loc) • 536 B
JavaScript
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;