Skip to content

sevaho/livereload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Livereload

Livereload your golang echo labstack web app to increase the development experience. This library only works with echo framework.

Install

go get github.com/sevaho/livereload

How to use

import (
	"github.com/labstack/echo/v4"
	"github.com/rs/zerolog/log"
)

e := echo.New()

e.Use(livereload.LiveReload(e, log.Logger, "directory A", "directory B"))

And add the following to every HTML file or to a layout html file:

<script src="/livereload.js"></script>

Check out the example!

demo.gif

About

Livereload your golang echo labstack web app to increase the development experience.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published