Refresh templates on the fly in local dev #9

Open
opened 2022-05-15 23:04:27 +00:00 by bvisness · 0 comments
Owner

At the moment we use the embed tooling in Go to include all the site templates directly in the compiled executable. This is great for deployment but kind of a pain in local development, when templates are changing frequently. It should be relatively easy to have a config flag that loads and compiles templates per request in development.

Of course, people will still need to refresh the site a lot as they make actual code changes, but I still spend a lot of time just making straightforward HTML/CSS edits and restarting all the time (and building SCSS... #8).

At the moment we use the `embed` tooling in Go to include all the site templates directly in the compiled executable. This is great for deployment but kind of a pain in local development, when templates are changing frequently. It should be relatively easy to have a config flag that loads and compiles templates per request in development. Of course, people will still need to refresh the site a lot as they make actual code changes, but I still spend a lot of time just making straightforward HTML/CSS edits and restarting all the time (and building SCSS... #8).
bvisness changed title from Refresh HTML templates on the fly in local dev to Refresh templates on the fly in local dev 2022-05-15 23:04:37 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hmn/hmn#9
No description provided.