maxpoletaev / node-beml

HTML preprocessor for BEM
64 stars 4 forks source link

Plugin for Grunt #4

Closed pepelsbey closed 9 years ago

pepelsbey commented 9 years ago

It would be good to be able specify a folder with generated HTML files that should be processed by beml, something similar or even identical to grunt-contrib-htmlmin’s API.

grunt.initConfig({
  beml: {                        
    task: {                      
      options: {                 
        elemPrefix: '__',
        modPrefix: '_',
        modDlmtr: '_'
      },
      files: {                   
        'dist/index.html': 'src/index.html'
      }
    }
  }
});
maxpoletaev commented 9 years ago

Gulp plugin already written: https://github.com/zenwalker/gulp-beml. I don't use grunt, but plugin for it is good idea. Thank. Will be created.

maxpoletaev commented 9 years ago

Completed: https://github.com/zenwalker/grunt-beml

pepelsbey commented 9 years ago

That was fast! Thank you so much :)