Refresh templates on the fly in local dev #9

Open
opened 4 months ago 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 4 months ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: hmn/hmn#9
Loading…
There is no content yet.