Skip to content

jabbas/live_reload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

live_reload

Automagic webpage reloader/refresher

DEPENDENCIES

  1. perl - tested with 5.16.2
  2. Mojolicious - modern perl framework for the web
  3. AnyEvent (pulled by the previous one by default)

Your web browser need to support WebSockets!

HOWTO

  1. Start the app:
./livereload
  1. Add following to webpage:
<script src="http://localhost:3000/livereload"></script>
  1. Send reload to port 8888 on machine you launched the app (eg.: echo reload | nc localhost 8888)

  2. Go to http://localhost:3000/ for demo page

WHY YOU NEED IT?

You can use it in your favorite editor to reload the web page after saving the file (even automagically when editor supports adding custom actions after saving the file)

TODO

  • moar docs!!!
  • vim plugin
  • configurable listening ports
  • websocket connections pool
  • queueing if not connected
  • reloading specific urls only
  • refreshing css without full page reload
  • chrome/chromium plugin
  • listen on unix socket
  • cpanify and publish on CPAN

About

Automagic webpage reloader/refresher

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published