4 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 watch the fi
by 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? :)