Sha256: b2a6f0cd8d98c311f40866348c96193270e8523f7a6fed15e9dc7971272f3502
Contents?: true
Size: 645 Bytes
Versions: 8
Compression:
Stored size: 645 Bytes
Contents
const { join } = require("../../prettier"); const types = { basic: "Basic", frameset: "Frameset", mobile: "Mobile", rdfa: "RDFa", strict: "Strict", xml: "XML" }; const versions = ["1.1", "5"]; // http://haml.info/docs/yardoc/file.REFERENCE.html#doctype- const doctype = (path, _opts, _print) => { const { value } = path.getValue(); const parts = ["!!!"]; if (value.type in types) { parts.push(types[value.type]); } else if (value.version in versions) { parts.push(versions[value.version]); } if (value.encoding) { parts.push(value.encoding); } return join(" ", parts); }; module.exports = doctype;
Version data entries
8 entries across 8 versions & 1 rubygems