template-parse.js 304 B

1234567891011121314
  1. "use strict";
  2. const TemplateParser = require("./template-parser");
  3. const Input = require("postcss/lib/input");
  4. function templateParse (css, opts) {
  5. const input = new Input(css, opts);
  6. const parser = new TemplateParser(input);
  7. parser.parse();
  8. return parser.root;
  9. }
  10. module.exports = templateParse;