layout.ejs 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>New Sails App</title>
  5. <!-- Viewport mobile tag for sensible mobile support -->
  6. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  7. <!--
  8. Stylesheets and Preprocessors
  9. ==============================
  10. You can always bring in CSS files manually with `<link>` tags, or asynchronously
  11. using a solution like AMD (RequireJS). Or, if you like, you can take advantage
  12. of Sails' conventional asset pipeline (boilerplate Gruntfile).
  13. By default, stylesheets from your `assets/styles` folder are included
  14. here automatically (between STYLES and STYLES END). Both CSS (.css) and LESS (.less)
  15. are supported. In production, your styles will be minified and concatenated into
  16. a single file.
  17. To customize any part of the built-in behavior, just edit `tasks/pipeline.js`.
  18. For example, here are a few things you could do:
  19. + Change the order of your CSS files
  20. + Import stylesheets from other directories
  21. + Use a different or additional preprocessor, like SASS, SCSS or Stylus
  22. -->
  23. <!--STYLES-->
  24. <!--STYLES END-->
  25. </head>
  26. <body>
  27. <%- body %>
  28. <!--
  29. Client-side Templates
  30. ========================
  31. HTML templates are important prerequisites of modern, rich client applications.
  32. To work their magic, frameworks like Backbone, Angular, Ember, and Knockout require
  33. that you load these templates client-side.
  34. By default, your Gruntfile is configured to automatically load and precompile
  35. client-side JST templates in your `assets/templates` folder, then
  36. include them here automatically (between TEMPLATES and TEMPLATES END).
  37. To customize this behavior to fit your needs, just edit `tasks/pipeline.js`.
  38. For example, here are a few things you could do:
  39. + Import templates from other directories
  40. + Use a different template engine (handlebars, jade, dust, etc.)
  41. + Internationalize your client-side templates using a server-side
  42. stringfile before they're served.
  43. -->
  44. <!--TEMPLATES-->
  45. <!--TEMPLATES END-->
  46. <!--
  47. Client-side Javascript
  48. ========================
  49. You can always bring in JS files manually with `script` tags, or asynchronously
  50. on the client using a solution like AMD (RequireJS). Or, if you like, you can
  51. take advantage of Sails' conventional asset pipeline (boilerplate Gruntfile).
  52. By default, files in your `assets/js` folder are included here
  53. automatically (between SCRIPTS and SCRIPTS END). Both JavaScript (.js) and
  54. CoffeeScript (.coffee) are supported. In production, your scripts will be minified
  55. and concatenated into a single file.
  56. To customize any part of the built-in behavior, just edit `tasks/pipeline.js`.
  57. For example, here are a few things you could do:
  58. + Change the order of your scripts
  59. + Import scripts from other directories
  60. + Use a different preprocessor, like TypeScript
  61. -->
  62. <!--SCRIPTS-->
  63. <!--SCRIPTS END-->
  64. </body>
  65. </html>