Code Monkey home page Code Monkey logo

Comments (4)

piranha avatar piranha commented on August 25, 2024

Yeah, that was me being lazy. While it wasn't hard to make gostatic watch for templates (I did it in 3f8d120), it's much harder to watch for changes in config - you'll have to notice if you're reading files from wrong directory or serving them from wrong directory; basically config is almost global state in gostatic and it will require quite a bit of work to make it able reload configuration without restarting. Though I'm not sure, maybe there is a technique for graceful restarting of a process?

Plus, watching for templates is not very valuable by itself. Bigger problem is that pages have no data about how old their templates are (or even knowledge about this dependency), so they are not re-rendered when their templates change. That is obviously a deficiency that should be fixed, but I'm not sure when I'll get around to fix that. If anybody wants to improve this part, I'm all for it. :)

from gostatic.

pranavraja avatar pranavraja commented on August 25, 2024

Thanks Alexander,

Just noticed a regression in the latest change, I've submitted #19 as a patch.

I might hack around in my fork and try to get the re-rendering when templates change, if you're open to pull requests around this functionality.

from gostatic.

piranha avatar piranha commented on August 25, 2024

I would be glad to accept fixes for re-rendering on template change, especially if you will find a nice way to do that. :)

from gostatic.

pranavraja avatar pranavraja commented on August 25, 2024

Ok, thanks!

I'll close this issue for now, and create a separate pull request if I can find a nice way to resolve it.

from gostatic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.