Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

template-stringifier.js 547B

1234567891011121314151617181920212223
  1. 'use strict';
  2. const Stringifier = require('postcss/lib/stringifier');
  3. class TemplateStringifier extends Stringifier {
  4. literal(node) {
  5. if (node.nodes && node.nodes.length) {
  6. node.nodes.forEach((root) => {
  7. this.builder(root.raws.beforeStart, root, 'beforeStart');
  8. this.stringify(root);
  9. this.builder(root.raws.afterEnd, root, 'afterEnd');
  10. });
  11. } else {
  12. this.builder(node.text, node);
  13. }
  14. if (node.raws.ownSemicolon) {
  15. this.builder(node.raws.ownSemicolon, node, 'end');
  16. }
  17. }
  18. }
  19. module.exports = TemplateStringifier;