UNPKG

text-mode

Version:

Character based display for the DOM

8 lines 206 B
module.exports = function( template ){ return eval( "(function(o){return '" + template.replace( /'/g, "\\'" ) .replace( /<%=\s*/g, "'+o." ) .replace( /\s*%>/g, "+'" ) + "'})" ); }