layout.ejs 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. <link rel="stylesheet" href="/styles/importer.css">
  25. <!--STYLES END-->
  26. </head>
  27. <body>
  28. <%- body %>
  29. <!--
  30. Client-side Templates
  31. ========================
  32. HTML templates are important prerequisites of modern, rich client applications.
  33. To work their magic, frameworks like Backbone, Angular, Ember, and Knockout require
  34. that you load these templates client-side.
  35. By default, your Gruntfile is configured to automatically load and precompile
  36. client-side JST templates in your `assets/templates` folder, then
  37. include them here automatically (between TEMPLATES and TEMPLATES END).
  38. To customize this behavior to fit your needs, just edit `tasks/pipeline.js`.
  39. For example, here are a few things you could do:
  40. + Import templates from other directories
  41. + Use a different template engine (handlebars, jade, dust, etc.)
  42. + Internationalize your client-side templates using a server-side
  43. stringfile before they're served.
  44. -->
  45. <!--TEMPLATES-->
  46. <!--TEMPLATES END-->
  47. <!--
  48. Client-side Javascript
  49. ========================
  50. You can always bring in JS files manually with `script` tags, or asynchronously
  51. on the client using a solution like AMD (RequireJS). Or, if you like, you can
  52. take advantage of Sails' conventional asset pipeline (boilerplate Gruntfile).
  53. By default, files in your `assets/js` folder are included here
  54. automatically (between SCRIPTS and SCRIPTS END). Both JavaScript (.js) and
  55. CoffeeScript (.coffee) are supported. In production, your scripts will be minified
  56. and concatenated into a single file.
  57. To customize any part of the built-in behavior, just edit `tasks/pipeline.js`.
  58. For example, here are a few things you could do:
  59. + Change the order of your scripts
  60. + Import scripts from other directories
  61. + Use a different preprocessor, like TypeScript
  62. -->
  63. <!--SCRIPTS-->
  64. <script src="/js/dependencies/sails.io.js"></script>
  65. <!--SCRIPTS END-->
  66. </body>
  67. </html>