How to use pug-strip-comments - 1 common examples

To help you get started, we’ve selected a few pug-strip-comments examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pugjs / babel-plugin-transform-react-pug / src / parse-pug.js View on Github external
export default function(str) {
  return filters.handleFilters(
    parse(
      stripComments(lex(str), {stripUnbuffered: true, stripBuffered: true}),
    ),
  );
}

pug-strip-comments

Strip comments from a Pug token stream (from the lexer)

MIT
Latest version published 4 years ago

Package Health Score

80 / 100
Full package analysis

Popular pug-strip-comments functions