oorja | Library for Object Oriented Javascript
kandi X-RAY | oorja Summary
kandi X-RAY | oorja Summary
Library for Object Oriented Javascript
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of oorja
oorja Key Features
oorja Examples and Code Snippets
Community Discussions
Trending Discussions on oorja
QUESTION
I am very new to node.js
and have been googling for a solution to the problem stated in my question title above.
Basically I am building a simple web api that allows users to upload their files and then query them individually after that. So I am trying to figure out how to display the list of files in the server directory so instead of them remembering the exact file name, they can pick it from the list.
Here's my full html code project/public/index.html
(EDIT - after answered by Oorja)
ANSWER
Answered 2018-Jun-03 at 07:37You should try a template engine like EJS.
Example usage if you use express:
EJS uses the views
folder in root for html files default, so create it and put your index.html
there.
0. Install EJS: npm install ejs
1. Include EJS in express: app.set('view engine', 'ejs');
2. Add to your route: res.render('index', {files: files});
3. Get it in HTML, modify your index.html (put it where you need):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install oorja
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page