0.1.10 • Published 10 years ago

doodle v0.1.10

Weekly downloads
1
License
-
Repository
github
Last release
10 years ago

Doodle: reload you html

Command-line tool for making static web pages, save and reload.
Use Node to watch files, use websocket to notify the html page to reload.
The page gets the message an then reload automatically.

Usage:

You can install doodle from npm by:

sudo npm install -g doodle

Then if the file(of directory) names "path-x", run this command:

doodle path-x

doodle will open a ws:// server at port 8071,
and put the doodle.js file at 8072.

You can add ether of these code to you html file to reload:
1) add doodle.js into an <script> tag:

:jade
  script(src='http://localhost:8072/doodle.js')

2) or add javascript code by yourself:

:coffeescript
  ws = new WebSocket 'ws://localhost:8071'
  ws.onmessage = (message) ->
    if message.data is 'reload'
      do location.reload

check example/ directory for more details.

License:

MIT

0.1.10

10 years ago

0.1.9

10 years ago

0.1.8

11 years ago

0.1.6

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago

0.0.11

11 years ago

0.0.10

11 years ago

0.0.9

12 years ago

0.0.8

12 years ago

0.0.7

12 years ago

0.0.6

12 years ago

0.0.5

12 years ago

0.0.4

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago