partial view

36 views
Skip to first unread message

Wojciech Rajchel

unread,
Jul 14, 2014, 5:21:18 AM7/14/14
to nod...@googlegroups.com
Hi

I want to create reusable component for example image gallery on a website. I want to have html part of the gallery in ejs template and to load data to the template from controller created for that template (dedicated controller generates partial view). How can i make this? I am using Express.js

In asp.net mvc i have Renderpartial or similar methods. In the case of nodejs I didn't find a solution. I am newbie in field of nodejs. 

Ex:
code of parent page
something generated from a different controller for a separate child ejs file.
rest of parent page

Thanks
Wojtek

Daniel Alberto Martinez

unread,
Jul 15, 2014, 10:34:38 AM7/15/14
to nod...@googlegroups.com
You can check https://developer.yahoo.com/cocktails/mojito/docs/code_exs/scroll_views.html, they have implemented similar reatures on cocktails/mojito/YUI packages.
Reply all
Reply to author
Forward
0 new messages