diff --git a/server.js b/server.js index 2e386d0b041..284ed2aef19 100644 --- a/server.js +++ b/server.js @@ -5,13 +5,74 @@ var path = require('path'); var app = express(); app.use(morgan('combined')); +var articleone={ + title:"article one by sagar bhaltilak", + heading:"article-one", + date:"aug 5 2017", + content:` +
+ This is my first article and i am feeling great to do this.This is my first article and i am feeling great to do this.This is my first article and i am feeling great to do this.This is my first article and i am feeling great to do this.This is my first article and i am feeling great to do this.This is my first article and i am feeling great to do this.This is my first article and i am feeling great to do this.This is my first article and i am feeling great to do this. +
++ This is my first article and i am feeling great to do this.This is my first article and i am feeling great to do this.This is my first article and i am feeling great to do this.This is my first article and i am feeling great to do this.This is my first article and i am feeling great to do this.This is my first article and i am feeling great to do this.This is my first article and i am feeling great to do this.This is my first article and i am feeling great to do this. +
++ This is my first article and i am feeling great to do this.This is my first article and i am feeling great to do this.This is my first article and i am feeling great to do this.This is my first article and i am feeling great to do this.This is my first article and i am feeling great to do this.This is my first article and i am feeling great to do this.This is my first article and i am feeling great to do this.This is my first article and i am feeling great to do this. +
`}; + + function createTemplate(data){ + var title=data.title; + var date=data.date; + var heading=data.heading; + var content=data.content; + var htmlTemplate=` + +