Guest User

Untitled

a guest
May 26th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // -> Display current template into global layout
  2. self.res.render(self.module+'/'+(self.action?self.action:''), {
  3.    
  4.     // -- Send Meta Tags
  5.         meta: self.meta,
  6.        
  7.         // -- Send CSS & JS files to load
  8.         jsFiles: api.helpers[self.module] && api.helpers[self.module].loadJs ? api.helpers[self.module].loadJs : [],
  9.         cssFiles: api.helpers[self.module] && api.helpers[self.module].loadCss ? api.helpers[self.module].loadCss : [],
  10.        
  11.         // -- Send session and xpath informations
  12.         me: self.req.session.me,
  13.         xpath: (self.module+'_'+self.xpath).split('_').map(function(k,v) { return 'path-'+k; }).join(' '),
  14.        
  15.         // -- Senf datas about current env
  16.         datas: datas
  17.                
  18.     });
Add Comment
Please, Sign In to add comment