@marko/prettyprint
Version:
Prettyprint Marko template files in the syntax of your choice
18 lines (13 loc) • 480 B
JavaScript
;
var prettyPrintSource = require("./prettyPrintSource");
var prettyPrintAST = require("./prettyPrintAST");
module.exports = exports = function prettyPrint(ast, options) {
if (typeof ast === "string") {
var source = ast;
return prettyPrintSource(source, options);
}
return prettyPrintAST(ast, options);
};
exports.prettyPrintAST = prettyPrintAST;
exports.prettyPrintFile = require("./prettyPrintFile");
exports.prettyPrintSource = prettyPrintSource;