From 6deea4765b0d49bd13571447fab7daa5bcdd7c26 Mon Sep 17 00:00:00 2001 From: Dustin Machi Date: Wed, 29 Sep 2010 01:33:36 -0400 Subject: [PATCH] stream templates --- lib/media/html.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/media/html.js b/lib/media/html.js index e38b6cd..bd7ac2a 100644 --- a/lib/media/html.js +++ b/lib/media/html.js @@ -54,15 +54,15 @@ Media({ template = templateEngine.compile(templateId, (mediaParams && mediaParams.template)); } - return { forEach: function(write){ return when(template, function(template){ - write(template(object)); + template(object).forEach(write); }) } } }, + deserialize: function(inputStream, request){ throw new Error("not implemented"); }