These are chat archives for quorrajs/quorrajs

21st
Jan 2017
Üsame Fethullah AVCI
@usameavci
Jan 21 2017 12:31
hi
Harish
@harishanchu
Jan 21 2017 12:49
@usameavci Hi
Üsame Fethullah AVCI
@usameavci
Jan 21 2017 12:54
how to access env variable in views ?
Harish
@harishanchu
Jan 21 2017 13:02
You have to pass them to the view as view option.
Üsame Fethullah AVCI
@usameavci
Jan 21 2017 13:08
Is there a variable that I can get globally
Harish
@harishanchu
Jan 21 2017 13:13
Both app.locals and res.locals properties are available in aplication view templates. This is useful for providing helper functions to templates, as well as app-level data.
All javascript global variables can be accessed from the view by default.
Üsame Fethullah AVCI
@usameavci
Jan 21 2017 13:15
thanks @harishanchu
i found it
i get env vars in view with App.env
Harish
@harishanchu
Jan 21 2017 13:16
(y)