Grunt Plugin for cml-html-converter
npm install grunt-contrib-cml-html-converternpm install grunt-contrib-cml-html-converter
This converts cml to HTML using this npm package
most basic:
``javascript`
module.exports = function(grunt) {
grunt.initConfig({
cml: {
onefile: {
src: 'test.txt',
dest: 'result.html'
}
}
});
grunt.loadNpmTasks('grunt-contrib-cml-html-converter');
};
using grunt-contrib-watch:
`javascript``
module.exports = function(grunt) {
grunt.initConfig({
cml: {
onefile: {
src: 'test.txt',
dest: 'result.html'
}
},
watch: {
options: {
livereload: {
port: 35729
}
},
all: {
files: ['test.txt'],
tasks: ['cml']
}
}
});
grunt.loadNpmTasks('grunt-contrib-cml-html-converter');
grunt.loadNpmTasks('grunt-contrib-watch');
};