Thursday 28 November 2019

Displaying images without using a framework

Hey, so I'm trying to display an image in nodeJS, but we're not supposed to be using frameworks.​This is what I've tried so far (with EJS as a templating language):
  • pizza pic <%= pizza.name %> - <%= pizza.price %>
  • That's what I've tried so far, but from what I've managed to gather, a separate request is sent when fetching an image and that has to be handled separately. How would one go about doing this? The rest of my code seems to be working fine.​Thanks

    Submitted November 28, 2019 at 05:51PM by indisapien

    No comments:

    Post a Comment