Export $$$ function, which returns HTML as a string

This commit is contained in:
Nathan Sobo 2012-03-12 19:14:53 -06:00
parent 7638375b78
commit 633e07d537

View File

@ -185,4 +185,5 @@ for methodName in ['prependTo', 'appendTo', 'insertAfter', 'insertBefore']
(exports ? this).View = View
(exports ? this).$$ = (fn) -> View.render.call(View, fn)
(exports ? this).$$$ = (fn) -> View.buildHtml.call(View, fn)[0]