Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // -> Display current template into global layout
- self.res.render(self.module+'/'+(self.action?self.action:''), {
- // -- Send Meta Tags
- meta: self.meta,
- // -- Send CSS & JS files to load
- jsFiles: api.helpers[self.module] && api.helpers[self.module].loadJs ? api.helpers[self.module].loadJs : [],
- cssFiles: api.helpers[self.module] && api.helpers[self.module].loadCss ? api.helpers[self.module].loadCss : [],
- // -- Send session and xpath informations
- me: self.req.session.me,
- xpath: (self.module+'_'+self.xpath).split('_').map(function(k,v) { return 'path-'+k; }).join(' '),
- // -- Senf datas about current env
- datas: datas
- });
Add Comment
Please, Sign In to add comment