Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 2 months ago
JSON representation

Todo List developed using ejs and expressjs.

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 string

ejs.render(str, data, options);
// => Rendered HTML string

ejs.renderFile(filename, data, options, function(err, str){
// str => Rendered HTML string
});