Permalink
Browse files

render is now an alias for pub in the browser side`

  • Loading branch information...
1 parent 010c452 commit 2d3f17a97a4ac5be6fa63666bf10d583b5e3a5ee @malgorithms committed Oct 11, 2012
Showing with 57 additions and 57 deletions.
  1. +1 −1 Cakefile
  2. +1 −1 lib/view.js
  3. +1 −1 package.json
  4. +1 −1 src/view.coffee
  5. +38 −38 test/express3/public/javascripts/test_cases.js
  6. +15 −15 test/express3/views/index.toffee
View
@@ -103,7 +103,7 @@ generateExpressTest = (cb) ->
</tr>
<script type="text/javascript">
var gbid = function(x) {return document.getElementById(x); }
- var script_res = toffee.templates["/#{dir}/input.toffee"].pub(#{vars});
+ var script_res = toffee.templates["/#{dir}/input.toffee"].render(#{vars});
gbid("browser_#{rid}").innerHTML = script_res;
if (gbid("browser_#{rid}").innerHTML == gbid("expected_#{rid}").innerHTML) {
gbid("browser_#{rid}").style.backgroundColor="#dfe";
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,7 +1,7 @@
{
"name": "toffee",
"description": "A NodeJs, Express 3.x, Express 2.x, and browser-side templating language based on CoffeeScript with slicker tokens and syntax. Built with love at OkCupid.",
- "version": "0.0.47",
+ "version": "0.0.48",
"directories": {
"lib": "./lib"
},
View
@@ -483,7 +483,7 @@ class view
#{if @browserMode then '' else getCommonHeaders(false)}
tmpl = toffee.templates["#{@bundlePath}"] =
bundlePath: "#{@bundlePath}"
-tmpl.pub = (__locals) ->
+tmpl.render = tmpl.pub = (__locals) ->
#{___}_to = (x) -> __locals.__toffee.out.push x
#{___}_ln = (x) -> __locals.__toffee.lineno = x
#{___}_ts = (x) -> __locals.__toffee.state = x
Oops, something went wrong.

0 comments on commit 2d3f17a

Please sign in to comment.