2 ms·
To clarify: do you watch filesystem for template changes, then store the parsed template in memory, or do you execute the template every time? I'd be curious t
by lunixbochs 12y ago
To clarify: do you watch filesystem for template changes, then store the parsed template in memory, or do you execute the template every time?
I'd be curious to see benchmarks against nginx with the equivalent html files already generated.
> The droplet hosting the former site only accepted its key, so losing the hard drive meant I lost access to maintain the site.
Droplet as in DigitalOcean? As long as you still have access to your DigitalOcean account, you can "Reset Root Password" and use "Console Access" to re-establish ssh.
- cjslep 12y ago> To clarify: do you watch filesystem for template changes, then store the parsed template in memory, or do you execute the template every time? I watch the filesystem for template changes and re-read the template into memory. However, upon serving a request the template is re-executed. The rationale is to, in the future, expose the data portion of Go's template.ExecuteTemplate so a third-party content manager can pass in information such as date of publication, published by whom, tags, etc. > As long as you still have access to your DigitalOcean account... I had no idea that was possible, but now I am kicking myself. Fortunately, my previous site had very little. Thanks for pointing that out!
- lunixbochs 12y agoWhat do you mean by "third party content manager"? That sounds quite a bit like a database. Is this a static site or not? :)