Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/souraevshing/todolist-ejs-app
Todo List developed using ejs and expressjs.
https://github.com/souraevshing/todolist-ejs-app
ejs expressjs javascript nodejs
Last synced: 2 days ago
JSON representation
Todo List developed using ejs and expressjs.
- Host: GitHub
- URL: https://github.com/souraevshing/todolist-ejs-app
- Owner: Souraevshing
- Created: 2022-12-04T15:23:39.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-05T14:20:51.000Z (almost 2 years ago)
- Last Synced: 2023-03-11T11:07:10.992Z (over 1 year ago)
- Topics: ejs, expressjs, javascript, nodejs
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TodoList-EJS-app
### To install ejs as a dependency in your project run :
npm i ejs### Example
Pass EJS a template string and some data. BOOM, you've got some HTML.
let ejs = require('ejs');
let people = ['geddy', 'neil', 'alex'];
let html = ejs.render('<%= people.join(", "); %>', {people: people});### Usage
let template = ejs.compile(str, options);
template(data);
// => Rendered HTML stringejs.render(str, data, options);
// => Rendered HTML stringejs.renderFile(filename, data, options, function(err, str){
// str => Rendered HTML string
});