Creating a Web/HTML Page with AppleScript or JXA -- Suggestions?

I thought I read somewhere that web pages could be “easily” created now with AS or JXA under Yosemite, but I can’t seem to find the reference. Maybe it was El Capitan . . .

Anyway, if anyone has done this, or knows of references/examples, please share.

My immediate use case is to pull data from Evernote, and display a nice HTML formatted output.

My initial thought is to create (outside of the script) a HTML template file with placeholders for the data I’ll get from Evernote. Then at run time, just replace the placeholders with the data, and pass to the default browser to display.

One advantage of this approach is that the end user can edit the HTML file to customize the formatting to his/her liking.

So, what do you guys think, good approach, or is there a better one?

See Website Popups Using Automator for a possible solution.