|
|
|
@ -1,7 +1,10 @@
|
|
|
|
var cml_html_converter = require('cml-html-converter');
|
|
|
|
module.exports = function(grunt) {
|
|
|
|
var result = cml_html_converter('line1\n\tline2');
|
|
|
|
|
|
|
|
console.log(result);
|
|
|
|
grunt.registerMultiTask('cml', 'Grunt task for converting CML to HTML', function() {
|
|
|
|
grunt.registerMultiTask('cml_html_converter', 'Grunt task for converting CML to HTML', function() {
|
|
|
|
var cml_html_converter = require('cml-html-converter');
|
|
|
|
|
|
|
|
var result = cml_html_converter('line1\n\tline2');
|
|
|
|
|
|
|
|
console.log(result);
|
|
|
|
|
|
|
|
/*
|
|
|
|
// Merge task-specific and/or target-specific options with these defaults.
|
|
|
|
// Merge task-specific and/or target-specific options with these defaults.
|
|
|
|
var options = this.options({
|
|
|
|
var options = this.options({
|
|
|
|
punctuation: '.',
|
|
|
|
punctuation: '.',
|
|
|
|
@ -33,4 +36,7 @@ grunt.registerMultiTask('cml_html_converter', 'Grunt task for converting CML to
|
|
|
|
// Print a success message.
|
|
|
|
// Print a success message.
|
|
|
|
grunt.log.writeln('File "' + f.dest + '" created.');
|
|
|
|
grunt.log.writeln('File "' + f.dest + '" created.');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
*/
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|