How to use flk-parser - 1 common examples

To help you get started, we’ve selected a few flk-parser 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 falakjs / Falak / framework / compiler / parser / parser.js View on Github external
constructor(html, filePath, env = Parser.DEVELOPMENT_MODE) {
        html = this.handleCustomSelfClosedTagsFirst(html);
        const dom = new JSDOM(html);

        this.debugger = true;

        this.env = env;

        this.filePath = filePath;

        this.viewName = Parser.getViewName(filePath);

        this.filename = path.basename(filePath).rtrim('.html');

        global.document = dom.window.document;

        this.html = html;

        this.htmlCompiler = new HtmlCompiler(this.html, this.viewName, this);

flk-parser

This is the exact same JSDOM package but with a slight edit to allow custom attribute names. All credits goe to JSDOM developers

MIT
Latest version published 5 years ago

Package Health Score

58 / 100
Full package analysis

Popular flk-parser functions