GithubHelp home page GithubHelp logo

Comments (4)

gazay avatar gazay commented on June 28, 2024

Thank you for your response! It's very important to me)

I understood what you talking about, but no - now Gon is only request dependent. I think I can make something like not request dependent hash store for global variables - it's a good idea. But I think there I need new syntax for it. Maybe something like gon.global.variable_name or global_gon. If you want to provide pull request - it will be great, or I'll do it when I have more time)

from gon.

structuralartistry avatar structuralartistry commented on June 28, 2024

Hey gazay, no problem. At this point just reverted to using manual for this purpose as I dont have a lot of these variables and I am a bit under time constraint. But if I do end up delving in I will let you know...

Cheers!

from gon.

gazay avatar gazay commented on June 28, 2024

In version 3.0.0 I added Gon.global feature which can be reached from anywhere in rails application

from gon.

structuralartistry avatar structuralartistry commented on June 28, 2024

Awesome, thanks!

from gon.

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.