Guest User

Untitled

a guest
Jan 16th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. ### npm
  2. #### コマンド-install
  3. このコマンドにより、node-modulesディレクトリが作成され、
  4. ライブラリがインストールされる。
  5. - current directory only
  6. ```
  7. npm install [???]
  8. ```
  9.  
  10. - install global
  11. ```
  12. npm install -g [???]
  13. ```
  14.  
  15. ### ejs
  16. #### install
  17. `npm install ejs`
  18.  
  19. #### 使い方
  20. test.ejsのように`ejs`ファイルを作成
  21.  
  22. ```
  23. <html>
  24. <h1><%= title %></h1>
  25. <p><%- content %></p>
  26. </html>
  27. ```
  28.  
  29. - エスケープあり
  30. <%= %>
  31. - エスケープなし
  32. <%- %>
Add Comment
Please, Sign In to add comment