Skip to content

Pug unbuffered code don't includes #91

@var-bp

Description

@var-bp

Hi, I have problem with bemto.pug when using with webpack 2 pug-loader. All files with only unbuffered code inside (helpers.pug and tag_metadata.pug) don't includes/compiles.

Only solution that I find is to take all unbuffered code from helpers.pug and tag_metadata.pug to index.pug and write it in one line each.

// don't work
-
  var get_bemto_tag_type = function(tagName) {
    var result = 'block'
    if (bemto_tag_metadata[tagName]) {
      result = bemto_tag_metadata[tagName].type || result;
    }
    return result;
  }

// work
- var get_bemto_tag_type = function(tagName) { var result = 'block'; if (bemto_tag_metadata[tagName]) { result = bemto_tag_metadata[tagName].type || result; } return result; }

It seems to me that the same problem should be with Gulp too. To write plugins it would be ideal if the bemto.pug was one big file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions