Message from JavaScript discussions

October 2018

— See


When you say this, I think of sending GET request from external JS to your express server, which responds with the data you are referencing

— I have a js file which i am using to display chart, i have linked it with chart.pug (suppose) i am rendering chart.pug with a variable data, so can i access that data variable from that js file?

Message permanent page

— Pug?

— Yea thats too a way, but what i am asking..

— Yea i am using pug

— Same as jade

— Pug runs on the server

— Yes, you will have to send the raw data seperately

— You need the data on the client

— Unless you find some way to wrap it with the chart data

— If it is HTML, use a data attribute