Permalink
Browse files

Updated client-side examples.

  • Loading branch information...
1 parent 5c50b85 commit 67b647266888412a6e4bec7ced4052ed3b7fd625 @mauricemach committed Jul 11, 2011
View
4 examples/browser/creme/index.html
@@ -29,8 +29,8 @@
for guy in @stooges
li guy
- $('body').append CoffeeKup.render(stringy, context: {stooges: stooges})
- $('body').append CoffeeKup.render(codey, context: {stooges: stooges})
+ $('body').append CoffeeKup.render(stringy, stooges: stooges)
+ $('body').append CoffeeKup.render(codey, stooges: stooges)
</script>
</head>
<body>
View
2 examples/browser/decaf/index.html
@@ -11,7 +11,7 @@
<script>
$().ready(function(){
- $('body').append(template({context: {stooges: ['moe', 'larry', 'curly']}}));
+ $('body').append(template({stooges: ['moe', 'larry', 'curly']}));
});
</script>
</head>
View
137 examples/browser/decaf/template.js
@@ -1,136 +1 @@
-function template(ck_options) {
-var __slice = Array.prototype.slice;
-var __hasProp = Object.prototype.hasOwnProperty;
-var __bind = function(func, context) {return function(){ return func.apply(context, arguments); };};
- var ck_buffer, ck_doctypes, ck_esc, ck_indent, ck_render_attrs, ck_repeat, ck_self_closing, ck_tabs, ck_tag, coffeescript, comment, doctype, h, tag, text, a,i,li,p,s,th,u,ul;
- ck_options = (typeof ck_options !== "undefined" && ck_options !== null) ? ck_options : {};
- ck_options.context = (typeof ck_options.context !== "undefined" && ck_options.context !== null) ? ck_options.context : {};
- ck_options.locals = (typeof ck_options.locals !== "undefined" && ck_options.locals !== null) ? ck_options.locals : {};
- ck_options.format = (typeof ck_options.format !== "undefined" && ck_options.format !== null) ? ck_options.format : false;
- ck_options.autoescape = (typeof ck_options.autoescape !== "undefined" && ck_options.autoescape !== null) ? ck_options.autoescape : false;
- ck_buffer = [];
- ck_render_attrs = function(obj) {
- var _ref, k, str, v;
- str = '';
- _ref = obj;
- for (k in _ref) {
- if (!__hasProp.call(_ref, k)) continue;
- v = _ref[k];
- str += (" " + (k) + "=\"" + (ck_esc(v)) + "\"");
- }
- return str;
- };
- ck_doctypes = {
- '5': '<!DOCTYPE html>',
- 'xml': '<?xml version="1.0" encoding="utf-8" ?>',
- 'default': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
- 'transitional': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
- 'strict': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">',
- 'frameset': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">',
- '1.1': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">',
- 'basic': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">',
- 'mobile': '<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">'
- };
- ck_self_closing = ['area', 'base', 'basefont', 'br', 'hr', 'img', 'input', 'link', 'meta'];
- ck_esc = function(txt) {
- return ck_options.autoescape ? h(txt) : String(txt);
- };
- ck_tabs = 0;
- ck_repeat = function(string, count) {
- return Array(count + 1).join(string);
- };
- ck_indent = function() {
- if (ck_options.format) {
- return text(ck_repeat(' ', ck_tabs));
- }
- };
- h = function(txt) {
- return String(txt).replace(/&(?!\w+;)/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;');
- };
- doctype = function(type) {
- type = (typeof type !== "undefined" && type !== null) ? type : 5;
- text(ck_doctypes[type]);
- if (ck_options.format) {
- return text('\n');
- }
- };
- text = function(txt) {
- ck_buffer.push(String(txt));
- return null;
- };
- comment = function(cmt) {
- text("<!--" + (cmt) + "-->");
- if (ck_options.format) {
- return text('\n');
- }
- };
- tag = function() {
- var name;
- name = arguments[0];
- delete arguments[0];
- return ck_tag(name, arguments);
- };
- ck_tag = function(name, opts) {
- var _i, _len, _ref, o, result;
- ck_indent();
- text("<" + (name));
- _ref = opts;
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- o = _ref[_i];
- if (typeof o === 'object') {
- text(ck_render_attrs(o));
- }
- }
- if ((function(){ for (var _i=0, _len=ck_self_closing.length; _i<_len; _i++) { if (ck_self_closing[_i] === name) return true; } return false; }).call(this)) {
- text(' />');
- if (ck_options.format) {
- text('\n');
- }
- } else {
- text('>');
- _ref = opts;
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- o = _ref[_i];
- switch (typeof o) {
- case 'string':
- case 'number':
- text(ck_esc(o));
- break;
- case 'function':
- if (ck_options.format) {
- text('\n');
- }
- ck_tabs++;
- result = o.call(ck_options.context);
- if (typeof result === 'string') {
- ck_indent();
- text(ck_esc(result));
- if (ck_options.format) {
- text('\n');
- }
- }
- ck_tabs--;
- ck_indent();
- break;
- }
- }
- text("</" + (name) + ">");
- if (ck_options.format) {
- text('\n');
- }
- }
- return null;
- };
- coffeescript = function(code) {
- return script(";(" + (code) + ")();");
- };
- var arrayCreator = Array;a = function(){return ck_tag('a', arguments)};i = function(){return ck_tag('i', arguments)};li = function(){return ck_tag('li', arguments)};p = function(){return ck_tag('p', arguments)};s = function(){return ck_tag('s', arguments)};th = function(){return ck_tag('th', arguments)};u = function(){return ck_tag('u', arguments)};ul = function(){return ck_tag('ul', arguments)};(function(){ul(function() {
- var _i, _len, _ref, _result, guy;
- _result = []; _ref = this.stooges;
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- guy = _ref[_i];
- _result.push(li(guy));
- }
- return _result;
-});}).call(ck_options.context);return ck_buffer.join('');
-}
+function template(data) {var a,i,li,p,s,th,u,ul;a = function(){return __ck.tag('a', arguments);};i = function(){return __ck.tag('i', arguments);};li = function(){return __ck.tag('li', arguments);};p = function(){return __ck.tag('p', arguments);};s = function(){return __ck.tag('s', arguments);};th = function(){return __ck.tag('th', arguments);};u = function(){return __ck.tag('u', arguments);};ul = function(){return __ck.tag('ul', arguments);};var __slice = Array.prototype.slice;var __hasProp = Object.prototype.hasOwnProperty;var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };var __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor; child.__super__ = parent.prototype; return child; };var __indexOf = Array.prototype.indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (this[i] === item) return i; } return -1; }; var coffeescript, comment, doctype, h, tag, text, __ck, _base, _base2, _ref, _ref2, _ref3; if ((_ref = data.options) != null) { _ref; } else { data.options = {}; }; if ((_ref2 = (_base = data.options).format) != null) { _ref2; } else { _base.format = false; }; if ((_ref3 = (_base2 = data.options).autoescape) != null) { _ref3; } else { _base2.autoescape = false; }; __ck = { options: data.options, buffer: [], doctypes: { '5': '<!DOCTYPE html>', 'xml': '<?xml version="1.0" encoding="utf-8" ?>', 'default': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">', 'transitional': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">', 'strict': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">', 'frameset': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">', '1.1': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">', 'basic': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">', 'mobile': '<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">', 'ce': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "ce-html-1.0-transitional.dtd">' }, self_closing: ['area', 'base', 'basefont', 'br', 'col', 'frame', 'hr', 'img', 'input', 'link', 'meta', 'param'], render_attrs: function(obj) { var k, str, v; str = ''; for (k in obj) { v = obj[k]; str += " " + k + "=\"" + (this.esc(v)) + "\""; } return str; }, esc: function(txt) { if (this.options.autoescape) { return h(txt); } else { return String(txt); } }, tabs: 0, repeat: function(string, count) { return Array(count + 1).join(string); }, indent: function() { if (this.options.format) { return this.text(this.repeat(' ', this.tabs)); } }, tag: function(name, opts) { var o, result, _i, _j, _len, _len2; this.indent(); text("<" + name); for (_i = 0, _len = opts.length; _i < _len; _i++) { o = opts[_i]; if (typeof o === 'object') { text(this.render_attrs(o)); } } if (__indexOf.call(this.self_closing, name) >= 0) { text(' />'); if (this.options.format) { text('\n'); } } else { text('>'); for (_j = 0, _len2 = opts.length; _j < _len2; _j++) { o = opts[_j]; switch (typeof o) { case 'string': case 'number': text(this.esc(o)); break; case 'function': if (this.options.format) { text('\n'); } this.tabs++; result = o.call(data); if (typeof result === 'string') { this.indent(); text(this.esc(result)); if (this.options.format) { text('\n'); } } this.tabs--; this.indent(); } } text("</" + name + ">"); if (this.options.format) { text('\n'); } } return null; } }; h = function(txt) { return String(txt).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;'); }; doctype = function(type) { if (type == null) { type = 5; } text(__ck.doctypes[type]); if (data.options.format) { return text('\n'); } }; text = function(txt) { __ck.buffer.push(String(txt)); return null; }; comment = function(cmt) { text("<!--" + cmt + "-->"); if (data.options.format) { return text('\n'); } }; tag = function() { var name; name = arguments[0]; delete arguments[0]; return __ck.tag(name, arguments); }; coffeescript = function(code) { return script(";(" + code + ")();"); }; (function(){ul(function() { var guy, _i, _len, _ref, _results; _ref = this.stooges; _results = []; for (_i = 0, _len = _ref.length; _i < _len; _i++) { guy = _ref[_i]; _results.push(li(guy)); } return _results;});}).call(data);return __ck.buffer.join('');}
View
2 examples/browser/regular/index.coffee
@@ -1,2 +1,2 @@
$().ready ->
- $('body').append template(context: {stooges: ['moe', 'larry', 'curly']})
+ $('body').append template(stooges: ['moe', 'larry', 'curly'])
View
4 examples/browser/regular/index.js
@@ -1,9 +1,7 @@
(function() {
$().ready(function() {
return $('body').append(template({
- context: {
- stooges: ['moe', 'larry', 'curly']
- }
+ stooges: ['moe', 'larry', 'curly']
}));
});
}).call(this);
View
137 examples/browser/regular/template.js
@@ -1,136 +1 @@
-function template(ck_options) {
-var __slice = Array.prototype.slice;
-var __hasProp = Object.prototype.hasOwnProperty;
-var __bind = function(func, context) {return function(){ return func.apply(context, arguments); };};
- var ck_buffer, ck_doctypes, ck_esc, ck_indent, ck_render_attrs, ck_repeat, ck_self_closing, ck_tabs, ck_tag, coffeescript, comment, doctype, h, tag, text, a,i,li,p,s,th,u,ul;
- ck_options = (typeof ck_options !== "undefined" && ck_options !== null) ? ck_options : {};
- ck_options.context = (typeof ck_options.context !== "undefined" && ck_options.context !== null) ? ck_options.context : {};
- ck_options.locals = (typeof ck_options.locals !== "undefined" && ck_options.locals !== null) ? ck_options.locals : {};
- ck_options.format = (typeof ck_options.format !== "undefined" && ck_options.format !== null) ? ck_options.format : false;
- ck_options.autoescape = (typeof ck_options.autoescape !== "undefined" && ck_options.autoescape !== null) ? ck_options.autoescape : false;
- ck_buffer = [];
- ck_render_attrs = function(obj) {
- var _ref, k, str, v;
- str = '';
- _ref = obj;
- for (k in _ref) {
- if (!__hasProp.call(_ref, k)) continue;
- v = _ref[k];
- str += (" " + (k) + "=\"" + (ck_esc(v)) + "\"");
- }
- return str;
- };
- ck_doctypes = {
- '5': '<!DOCTYPE html>',
- 'xml': '<?xml version="1.0" encoding="utf-8" ?>',
- 'default': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
- 'transitional': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
- 'strict': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">',
- 'frameset': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">',
- '1.1': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">',
- 'basic': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">',
- 'mobile': '<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">'
- };
- ck_self_closing = ['area', 'base', 'basefont', 'br', 'hr', 'img', 'input', 'link', 'meta'];
- ck_esc = function(txt) {
- return ck_options.autoescape ? h(txt) : String(txt);
- };
- ck_tabs = 0;
- ck_repeat = function(string, count) {
- return Array(count + 1).join(string);
- };
- ck_indent = function() {
- if (ck_options.format) {
- return text(ck_repeat(' ', ck_tabs));
- }
- };
- h = function(txt) {
- return String(txt).replace(/&(?!\w+;)/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;');
- };
- doctype = function(type) {
- type = (typeof type !== "undefined" && type !== null) ? type : 5;
- text(ck_doctypes[type]);
- if (ck_options.format) {
- return text('\n');
- }
- };
- text = function(txt) {
- ck_buffer.push(String(txt));
- return null;
- };
- comment = function(cmt) {
- text("<!--" + (cmt) + "-->");
- if (ck_options.format) {
- return text('\n');
- }
- };
- tag = function() {
- var name;
- name = arguments[0];
- delete arguments[0];
- return ck_tag(name, arguments);
- };
- ck_tag = function(name, opts) {
- var _i, _len, _ref, o, result;
- ck_indent();
- text("<" + (name));
- _ref = opts;
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- o = _ref[_i];
- if (typeof o === 'object') {
- text(ck_render_attrs(o));
- }
- }
- if ((function(){ for (var _i=0, _len=ck_self_closing.length; _i<_len; _i++) { if (ck_self_closing[_i] === name) return true; } return false; }).call(this)) {
- text(' />');
- if (ck_options.format) {
- text('\n');
- }
- } else {
- text('>');
- _ref = opts;
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- o = _ref[_i];
- switch (typeof o) {
- case 'string':
- case 'number':
- text(ck_esc(o));
- break;
- case 'function':
- if (ck_options.format) {
- text('\n');
- }
- ck_tabs++;
- result = o.call(ck_options.context);
- if (typeof result === 'string') {
- ck_indent();
- text(ck_esc(result));
- if (ck_options.format) {
- text('\n');
- }
- }
- ck_tabs--;
- ck_indent();
- break;
- }
- }
- text("</" + (name) + ">");
- if (ck_options.format) {
- text('\n');
- }
- }
- return null;
- };
- coffeescript = function(code) {
- return script(";(" + (code) + ")();");
- };
- var arrayCreator = Array;a = function(){return ck_tag('a', arguments)};i = function(){return ck_tag('i', arguments)};li = function(){return ck_tag('li', arguments)};p = function(){return ck_tag('p', arguments)};s = function(){return ck_tag('s', arguments)};th = function(){return ck_tag('th', arguments)};u = function(){return ck_tag('u', arguments)};ul = function(){return ck_tag('ul', arguments)};(function(){ul(function() {
- var _i, _len, _ref, _result, guy;
- _result = []; _ref = this.stooges;
- for (_i = 0, _len = _ref.length; _i < _len; _i++) {
- guy = _ref[_i];
- _result.push(li(guy));
- }
- return _result;
-});}).call(ck_options.context);return ck_buffer.join('');
-}
+function template(data) {var a,i,li,p,s,th,u,ul;a = function(){return __ck.tag('a', arguments);};i = function(){return __ck.tag('i', arguments);};li = function(){return __ck.tag('li', arguments);};p = function(){return __ck.tag('p', arguments);};s = function(){return __ck.tag('s', arguments);};th = function(){return __ck.tag('th', arguments);};u = function(){return __ck.tag('u', arguments);};ul = function(){return __ck.tag('ul', arguments);};var __slice = Array.prototype.slice;var __hasProp = Object.prototype.hasOwnProperty;var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };var __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor; child.__super__ = parent.prototype; return child; };var __indexOf = Array.prototype.indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (this[i] === item) return i; } return -1; }; var coffeescript, comment, doctype, h, tag, text, __ck, _base, _base2, _ref, _ref2, _ref3; if ((_ref = data.options) != null) { _ref; } else { data.options = {}; }; if ((_ref2 = (_base = data.options).format) != null) { _ref2; } else { _base.format = false; }; if ((_ref3 = (_base2 = data.options).autoescape) != null) { _ref3; } else { _base2.autoescape = false; }; __ck = { options: data.options, buffer: [], doctypes: { '5': '<!DOCTYPE html>', 'xml': '<?xml version="1.0" encoding="utf-8" ?>', 'default': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">', 'transitional': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">', 'strict': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">', 'frameset': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">', '1.1': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">', 'basic': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">', 'mobile': '<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">', 'ce': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "ce-html-1.0-transitional.dtd">' }, self_closing: ['area', 'base', 'basefont', 'br', 'col', 'frame', 'hr', 'img', 'input', 'link', 'meta', 'param'], render_attrs: function(obj) { var k, str, v; str = ''; for (k in obj) { v = obj[k]; str += " " + k + "=\"" + (this.esc(v)) + "\""; } return str; }, esc: function(txt) { if (this.options.autoescape) { return h(txt); } else { return String(txt); } }, tabs: 0, repeat: function(string, count) { return Array(count + 1).join(string); }, indent: function() { if (this.options.format) { return this.text(this.repeat(' ', this.tabs)); } }, tag: function(name, opts) { var o, result, _i, _j, _len, _len2; this.indent(); text("<" + name); for (_i = 0, _len = opts.length; _i < _len; _i++) { o = opts[_i]; if (typeof o === 'object') { text(this.render_attrs(o)); } } if (__indexOf.call(this.self_closing, name) >= 0) { text(' />'); if (this.options.format) { text('\n'); } } else { text('>'); for (_j = 0, _len2 = opts.length; _j < _len2; _j++) { o = opts[_j]; switch (typeof o) { case 'string': case 'number': text(this.esc(o)); break; case 'function': if (this.options.format) { text('\n'); } this.tabs++; result = o.call(data); if (typeof result === 'string') { this.indent(); text(this.esc(result)); if (this.options.format) { text('\n'); } } this.tabs--; this.indent(); } } text("</" + name + ">"); if (this.options.format) { text('\n'); } } return null; } }; h = function(txt) { return String(txt).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;'); }; doctype = function(type) { if (type == null) { type = 5; } text(__ck.doctypes[type]); if (data.options.format) { return text('\n'); } }; text = function(txt) { __ck.buffer.push(String(txt)); return null; }; comment = function(cmt) { text("<!--" + cmt + "-->"); if (data.options.format) { return text('\n'); } }; tag = function() { var name; name = arguments[0]; delete arguments[0]; return __ck.tag(name, arguments); }; coffeescript = function(code) { return script(";(" + code + ")();"); }; (function(){ul(function() { var guy, _i, _len, _ref, _results; _ref = this.stooges; _results = []; for (_i = 0, _len = _ref.length; _i < _len; _i++) { guy = _ref[_i]; _results.push(li(guy)); } return _results;});}).call(data);return __ck.buffer.join('');}

0 comments on commit 67b6472

Please sign in to comment.