Alexey, That's what the solution I describe above does. Except it doesn't simply include the template into the HTML, but pre-compiles them down to javascript functions which can be run in the the browser. This could be included as an inline script or a remote script reference.
On Wed, Mar 7, 2012 at 9:48 PM, Alexey Petrushin <[email protected] > wrote: > If I'm understand right the whole point of question is not how to share >> templates with client, but how to do it EFFICIENTLY. >> >> You probably will not do it by loading templates on the client one by one >> because speed and responsiveness of the Client will be terrible. >> >> I'm facing similar problem, it seems that the simplest way is just write >> a custom node script that will crawl Your 'app/views' directory on the >> server-side and include every template from there into the Client's HTML >> page. >> >> It would be nice if Asset Management solutions somehow automate this >> problem, but it seems that they don't (at least I don't know about it). >> > -- > 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 > -- http://www.edave.net https://github.com/dave-elkan Twitter: @edave -- 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
