4
Is there any way to render dynamic variables in jade with expressjs, when I say dynamic is to change in a loop without Reload in the page.
...
app.set('view engine','jade');
app.get('/',function(req,res}{
res.render('index.jade',{name:'Rafael'})
})
The intention is to refresh the res.render
altering the {name:Rafael}
for {name:Maria}
(example) keeping the generated layout static.
Got how? with socket or ajax?
I tried to implement the idea soque did not work very well or did not understand the idea, this returned html will not replace the tmp that has already been rendered?
– raddx
@Rafaelvergopolan I will try later to add an example of ajax if you do not know how to implement this.
– Sergio