Skip to content

Commit

Permalink
Add support for live preview mode
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgtaylor committed Feb 13, 2015
1 parent d8e6547 commit 6123c51
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions templates/index.jade
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,9 @@ html
|  on #{self.date().format('DD MMM YYYY')}

script: include scripts.js

if self.livePreview
script(src="/socket.io/socket.io.js")
script.
var socket = io();
socket.on('refresh', function (msg) { document.body.innerHTML = msg; })

0 comments on commit 6123c51

Please sign in to comment.