grunt-triple-quotes

0.0.3 • Public • Published

grunt-triple-quotes

Environment

Grunt ~0.4.5

Install

$ npm install grunt-triple-quotes --save-dev

Config

grunt.loadNpmTasks('grunt-triple-quotes');

Task Config

grunt.initConfig({
    triple: {    
        replace: {
            files: [{
                cwd: '<%= opt.temp %>',
                src: ['**/*.js', '!**/*-min.js'],
                dest: '<%= opt.temp %>'
            }]
        }
    }
});

Usage

$ grunt triple:replace

Source


var tpl = '''
  <h1>{{user.name}}</h1>
  <p>{{user.text}}</p>
''';

will turn out to:


var tpl = '''\
  <h1>{{user.name}}</h1>\
  <p>{{user.text}}</p>\
''';

Readme

Keywords

Package Sidebar

Install

npm i grunt-triple-quotes

Weekly Downloads

1

Version

0.0.3

License

none

Last publish

Collaborators

  • xiaocong.hxc