6 Aug
2019
6 Aug
'19
7:53 p.m.
Can you load a javascript module in a script embedded in a web page? If so how? I am trying to write a web page to display values in a yaml data file. I want to read this yaml data, parse it, and display the values. I found there is a javascript module available to do that. I installed it on my linux machine with the command 'apt-get install node-js-yaml'. The examples that come with the code don't work when embedded in a script on a web page. The line where it fails looks like this: var yaml = require('js-yaml'); I have been googling all day but all I can find are more examples that do not appear to be embedded in a web page. -- John G. Heim; jheim@math.wisc.edu; 608-263-4189