Hello,

I was wondering what is the best way to serve pages created by merging an HTML 
layout with contents from a database record.

In my case, I'm using the combination of Node, Express, MongoDB and Mongoose. 
If a web designer creates a nice layout page (say a user page of an address 
book, where contents of the user is displayed), what would be the workflow 
here? In one hand I have read the template and on the other hand I have the 
user database record. How do I merge the two? I thought of adding placeholders 
in the layout, like $user_image, $first_name, $last_name, $department, etc. I 
could then find/replace these placeholders with real data. Is this an 
acceptable workflow, or is there a simpler way? How are you guys working 
together with the web designer? I'm very curious about this.

Thanks in advance,

-- Tito

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to