Asynchronous dynamicHelpers

109 views
Skip to first unread message

Rakesh Pai

unread,
Apr 21, 2011, 8:47:09 AM4/21/11
to expre...@googlegroups.com
Is it possible to have asynchronous dynamic helpers? I want the
dynamic helper to query a DB and present the data to the view.

Can I just use next()? If so, how do I pass data to the view?

Regards,
Rakesh Pai

--
Rakesh Pai
Mumbai, India.
http://rakeshpai.me/
http://twitter.com/rakesh314
http://www.google.com/profiles/rakeshpai

vision media [ Tj Holowaychuk ]

unread,
Apr 21, 2011, 11:23:23 AM4/21/11
to expre...@googlegroups.com
unfortunately not at the moment no, the dynamic helpers are resolved within the render() call but do not (yet) postpone the rendering. I have an issue on GH for this


--
You received this message because you are subscribed to the Google Groups "Express" group.
To post to this group, send email to expre...@googlegroups.com.
To unsubscribe from this group, send email to express-js+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/express-js?hl=en.




--
Tj Holowaychuk
Vision Media
President & Creative Lead

Rakesh Pai

unread,
Apr 21, 2011, 1:02:48 PM4/21/11
to expre...@googlegroups.com
Ah. Thanks for the quick response.

Alan Hoffmeister

unread,
May 17, 2012, 9:30:16 AM5/17/12
to expre...@googlegroups.com
Hello guyz!

Sorry for ressurecting this post, but is this not possible yet?

Thank's!

Em quinta-feira, 21 de abril de 2011 12h23min23s UTC-3, vision media [ Tj Holowaychuk ] escreveu:
unfortunately not at the moment no, the dynamic helpers are resolved within the render() call but do not (yet) postpone the rendering. I have an issue on GH for this

On Thu, Apr 21, 2011 at 5:47 AM, Rakesh Pai <rake...@gmail.com> wrote:
Is it possible to have asynchronous dynamic helpers? I want the
dynamic helper to query a DB and present the data to the view.

Can I just use next()? If so, how do I pass data to the view?

Regards,
Rakesh Pai

--
Rakesh Pai
Mumbai, India.
http://rakeshpai.me/
http://twitter.com/rakesh314
http://www.google.com/profiles/rakeshpai

--
You received this message because you are subscribed to the Google Groups "Express" group.
To post to this group, send email to expre...@googlegroups.com.
To unsubscribe from this group, send email to express-js+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/express-js?hl=en.

Reply all
Reply to author
Forward
0 new messages