Angel was looking to not use io, but yes you definitely could. As to a string, you would need to have quotes interspersed and concat wouldn't you.
Anyway I thought this was just cool and compact. Feel free to ignore it. Sent from my Windows Phone From: Ryan Schmidt Sent: 5/31/2012 7:54 AM To: [email protected] Subject: Re: [nodejs] Sample CRUD app source code Why do you put the html source in a JavaScript comment, then parse it out? That seems very weird to me. Why not just a JavaScript string? Or why not store it in a separate .html file that's read into memory at startup? On May 31, 2012, at 09:35, Glenn Block wrote: > Not sure you want to use this but this is a diff approach to just dumping > static content using a closure: > https://github.com/tjanczuk/git-azure/blob/master/src/cli/commands/server.template.js -- 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 -- 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
