AppConfig.getBoolean
AppConfig.getBoolean($key, $default=false) -> boolean
Description
Like get(), but the value is parsed as a boolean.
Example app.jcon
:
{ tht: { ... } app: { numArticlesOnHomePage: 15 showBioInFooter: true contact: { email: hello@example.com twitter: @myusername } } }
In THT:
AppConfig.getBoolean('showBioInFooter') //= true AppConfig.showBioInFooter('missingKey') //= false