UNPKG

riot-compiler

Version:

Compiler for riot .tag files

24 lines (18 loc) 382 B
/* Jade HTML plugin. Part of the riot-compiler, license MIT History ------- 2016-03-09: Initital release */ var mixobj = require('./_utils').mixobj, parser = require('pug') var defopts = { pretty: true, doctype: 'html' } module.exports = function _pug (html, opts, url) { opts = mixobj(defopts, { filename: url }, opts) return parser.render(html, opts) }