We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The example in pug.compileClient is wrong:
var pug = require('pug'); // Compile a function var fn = pug.compileClient('string of pug', options); // Render the function var html = fn(locals); // => 'function template(locals) { return "<string>of pug</string>"; }'
pug.compileClient return a string. fn is not a callable function, except we eval it.
pug.compileClient
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The example in pug.compileClient is wrong:
pug.compileClient
return a string. fn is not a callable function, except we eval it.The text was updated successfully, but these errors were encountered: