hey guys,
i just finished or almost, and i didn't need to use any other module, and
i discovered some thing that maybe be useful to some people, here:
LayoutController.layout = function(obj)
{
var fs = require('fs');
*var html = fs.readFileSync('./app/views/'+ obj.__action+'/'+obj.fileName);*
obj.content = html;
//acessando a view especifica do controller layout
obj.render('layout/layout');
}
I don't need to create a server just to read, i'm using this to generate my
main layout and is working very well, i don't know if this is the right
way, but i don't think that exist any "right way", for me, this is working
in a way that i need...
--
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