Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. <html> .....
  2.  
  3. Server Computed = $ <%=serverComputed%>
  4.  
  5. Client Computed = $ <%=clientComputed%>
  6.  
  7. ....</html>
  8.  
  9. res.render('test', { serverComputed: '5000' });
  10.  
  11. ReferenceError: .../test.ejs:17
  12.  
  13. .....
  14.  
  15. clientComputed is not defined
  16.  
  17. res.render('test', { serverComputed: '5000', clientComputed: '<%= clientComputed %>' });
  18.  
  19. $lt:%= clientComputed %>
  20.  
  21. res.render('test', { open: '{{', close: '}}', serverComputed: '5000' });
  22.  
  23. Server Computed = $ {{=serverComputed}}
  24.  
  25. Client Computed = $ <%=clientComputed%>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement