Commit Graph

7 Commits

Author SHA1 Message Date
Roman Shtylman
b0da4b1a94 streaming view rendering
Allows for a view engine to return a stream upon being asked to render a
path. This allows for the engine to simply stream out data as it is
loaded from disk (or other IO location) without having to collect it all
first and then send it.

Fallback mode for all existing engines that call `fn` upon completion
takes over if no stream is returned. This works for both app.render and
res.render
2013-11-09 21:27:01 -05:00
Eric Ferraiuolo
75e47f2883 Add test for "view engine" setting with leading ".". 2013-01-24 00:55:55 -05:00
TJ Holowaychuk
67ca22b6e4 throw when callback is not given to app.engine() 2012-04-04 12:30:25 -07:00
Tj Holowaychuk
e9d7b6fbad Changed template engine signature to engine.__express(path, options, fn). Closes #878 2011-11-10 13:42:08 -08:00
Tj Holowaychuk
52e26697a9 Added index.<engine> render test 2011-11-08 20:22:27 -08:00
Tj Holowaychuk
fdf620b688 more tests 2011-11-08 20:18:07 -08:00
Tj Holowaychuk
66f8ca52d6 Added app.engine() tests 2011-11-08 20:14:53 -08:00