diff --git a/README.md b/README.md
index f399edf37..10690c500 100644
--- a/README.md
+++ b/README.md
@@ -561,12 +561,12 @@ require('marko/compiler').compileFile(path, function(err, src) {
### Sample Compiled Template
```javascript
-exports.create = function(__helpers) {
- var empty = __helpers.e,
+function create(__helpers) {
+ var str = __helpers.s,
+ empty = __helpers.e,
notEmpty = __helpers.ne,
escapeXml = __helpers.x,
- forEach = __helpers.f,
- escapeXmlAttr = __helpers.xa;
+ forEach = __helpers.f;
return function render(data, out) {
out.w('Hello ' +
@@ -577,9 +577,7 @@ exports.create = function(__helpers) {
out.w('
');
forEach(data.colors, function(color) {
- out.w('- ' +
+ out.w('
- ' +
escapeXml(color) +
'
');
});
@@ -591,16 +589,17 @@ exports.create = function(__helpers) {
}
};
}
+(module.exports = require("marko").c(__filename)).c(create);
```
The compiled output is designed to be both extremely readable and minifiable. The minified code is shown below:
```javascript
-exports.create=function(a){var d=a.ne,c=a.x,e=a.f,f=a.xa;return function(a,b){b.w("Hello "+c(a.name)+"! ");d(a.colors)?(b.w(""),e(a.colors,function(a){b.w('- '+c(a)+"
")}),b.w("
")):b.w("No colors!
")}};
+function create(a){var d=a.ne,c=a.x,e=a.f;return function(a,b){b.w("Hello "+c(a.name)+"! ");d(a.colors)?(b.w(""),e(a.colors,function(a){b.w('- '+c(a)+"
")}),b.w("
")):b.w("No colors!
")}}(module.exports=require("marko").c(__filename)).c(create);
```
-_File size: 189 bytes gzipped (251 bytes uncompressed)_
+_File size: 212 bytes gzipped (283 bytes uncompressed)_
## Hot reloading templates