Usage var ok = require('{%= name %}'); ok('success!'); Results in: Respects leading whitespace, so: ok(' success!'); Results in: