diff --git a/server.js b/server.js index 2e386d0b041..0a38e897e8b 100644 --- a/server.js +++ b/server.js @@ -5,10 +5,82 @@ var path = require('path'); var app = express(); app.use(morgan('combined')); +var articles = { + 'article-two': { + title: ' Article Two | S.Pawan Kumar', + heading: ' Article Two', + date: 'August 8,2017.', + content: ` +
+ This is the content for the second article. +
` +}, +'article-one' : { + title: 'Article One | S.Pawan Kumar', + heading: ' Article One', + date: 'August 7,2017.', + content: ` ++ This is the content for the first article.This is the content for the first article.This is the content for the first article.This is the content for the first article.This is the content for the first article.This is the content for the first article.This is the content for the first article.This is the content for the first article. +
` +}, + 'article-three': { + title: ' Article Three | S.Pawan Kumar', + heading: ' Article Three', + date: 'August 9,2017.', + content: ` ++ This is the content for the third article. +
` +} +}; +function CreateTemplate(data) +{ var title=data.title; + var date=data.date; + var heading=data.heading; + var content=data.content; + var HtmlTemplate=` + + +