0.0.3 • Published 9 years ago

grunt-triple-quotes v0.0.3

Weekly downloads
1
License
-
Repository
github
Last release
9 years ago

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>\
''';
0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago