You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Matt Huntington eb72672540
better readme
10 years ago
tasks making it work for one file 10 years ago
.gitignore ignoring src and dest files 10 years ago
README.md better readme 10 years ago
package.json 1.3.0 10 years ago

README.md

Grunt Task For Converting CML to HTML

Installation

npm install grunt-contrib-cml-html-converter

What Does It Do?

This converts cml to HTML using this npm package

Example Gruntfiles

most basic:

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:

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');
};