How to use the riot.compile function in riot

To help you get started, we’ve selected a few riot examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ariesjia / grunt-riot / tasks / riot.js View on Github external
var compileRiot = function(code, opts){
			return riot.compile(code,opts);
		};
github cheft / riot-isomorphic-template / lib / server.js View on Github external
require.extensions['.html'] = function(module, filename) {
        var src = riot.compile(fs.readFileSync(filename, 'utf8'))
        module._compile('module.exports = ' + src, filename)
    };