Skip to content
Browse files

docs

  • Loading branch information...
1 parent a22ce62 commit 3bf3612b271fc7c565d1f8360a7d9790d00d1604 @tj tj committed
Showing with 5 additions and 9 deletions.
  1. +5 −9 Readme.md
View
14 Readme.md
@@ -64,13 +64,11 @@ via npm:
Can then be as small as the following generated function:
```js
-function anonymous(locals) {
+function anonymous(locals, attrs, escape, rethrow) {
var buf = [];
with (locals || {}) {
var interp;
- buf.push('<p>');
- buf.push('Hello ' + escape((interp = name) == null ? '' : interp) + '');
- buf.push('</p>');
+ buf.push('\n<p>Hello ' + escape((interp = name) == null ? '' : interp) + '\n</p>');
}
return buf.join("");
}
@@ -80,14 +78,12 @@ function anonymous(locals) {
via `jade.attrs`, `jade.escape` etc.
```js
-function anonymous(locals) {
- var attrs = jade.attrs, escape = jade.escape;
+function anonymous(locals, attrs, escape, rethrow) {
+ var attrs = jade.attrs, escape = jade.escape, rethrow = jade.rethrow;
var buf = [];
with (locals || {}) {
var interp;
- buf.push('<p>');
- buf.push('Hello ' + escape((interp = name) == null ? '' : interp) + '');
- buf.push('</p>');
+ buf.push('\n<p>Hello ' + escape((interp = name) == null ? '' : interp) + '\n</p>');
}
return buf.join("");
}

0 comments on commit 3bf3612

Please sign in to comment.
Something went wrong with that request. Please try again.