Version: v0.6.1 - Beta.  We welcome contributors & feedback.  THanks!

Settings.get

Settings.get('myValue')

Description

Get a value from settings/app.jcon under the app section.

This is a good place to put constants, so you can quickly change them without updating the code.

Example app.jcon content:

{
    tht: {
        // ...
    }

    app: {
        numArticlesOnHomePage: 15
        showBioInFooter: true
        contact: {
            email: hello@example.com
            twitter: @myusername
        }
    }
}

In THT:

Settings.get('numArticlesOnHomePage');
//= 15

Settings.get('showBioInFooter');
//= true

Settings.get('contact').email;
//= 'hello@example.com'

See Also