How to autoreload when doing local HTML/CSS development

David Gamba, @gambaeng
version 0.1, 2023-03-18 #development #webserver #html #golang

Add this script to your page:

<script type="text/javascript" src="https://livejs.com/live.js"></script>

It works when doing local development!

Using it with Golang Templates only for Development

I put this in my templates:

{{ if .Development }}<script type="text/javascript" src="https://livejs.com/live.js"></script>{{ end }}