Installing jade template engine on jsreport

To install Jade / Pug (or any other template engine) with jsreport you con follow these steps:

  1. First off all, create a local folder that will hold the server, i.e.  (~/myTools/jsreport)
  2. Go to that directory. (cd ~/myTools/jsreport)
  3. yarn global add jsreport-cli (you can also use npm install -g jsreport-cli)
  4. Execute the command:  jsreport init (this will create folder structure)
  5. Add jade or ejs or the template engine package to folder with these command: yarn add  jsreport-jade
  6. start the server running jsreport start

That’s  all folks. You should hace jsreport + jade running on port 5488

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *