lundi 27 juin 2016

layout.ejs does not work in node


How can I make the following code in jade to work in ejs.

So that I can render a uniform view across all pages and also include common css and js files.

layout.ejs

block main-content
include scripts

scripts.ejs

<script type="text/javascript" src="/vendor/jquery/jquery.js">
<script type="text/javascript" src="/vendor/angular/angular.js">

index.ejs

extends ../includes/layout
block main-content
 section.content
  h1 hello world

Does ejs provide such a layout feature?


Aucun commentaire:

Enregistrer un commentaire