These are chat archives for quorrajs/quorrajs

4th
Jul 2016
maq
@maqboolkhan
Jul 04 2016 15:57
ok ok :thumbsup:
and m working on it :)
@harishanchu i set app.debug flag to false and now i get a simple error page saying something went wrong
where from its generating and how can i change this page?
Harish
@harishanchu
Jul 04 2016 16:57
@maqboolkhan Quorra makes use of its Ouch error handler internally to display those pages.
maq
@maqboolkhan
Jul 04 2016 16:58
ohhh how can i override them?
Harish
@harishanchu
Jul 04 2016 17:00
You can define your own error handlers with Quorra and decide whether to continue till default error handlers or send your own response.
maq
@maqboolkhan
Jul 04 2016 17:00
means just add
response.view('ErrorView')
Harish
@harishanchu
Jul 04 2016 17:00
App.missing can be used to handler 404 errors
maq
@maqboolkhan
Jul 04 2016 17:00
?
Harish
@harishanchu
Jul 04 2016 17:01
App.error for all the errors
App.missing and App.error are listeneres
maq
@maqboolkhan
Jul 04 2016 17:02
yes in these listeners just do 'response.view' ?
Harish
@harishanchu
Jul 04 2016 17:02
you can add callback function to it and it will get executed during the occurrence of an error
yes
everything that works in a route will also work here
maq
@maqboolkhan
Jul 04 2016 17:03
ok got it :)
Harish
@harishanchu
Jul 04 2016 17:03
:+1:
maq
@maqboolkhan
Jul 04 2016 17:04
@harishanchu u have been very helpful in sha Allah soon i will start tutorial and marketing of Quorra m still a student of it :)
Harish
@harishanchu
Jul 04 2016 17:04
Wonderful!
:smile:
maq
@maqboolkhan
Jul 04 2016 17:05
:)
Harish
@harishanchu
Jul 04 2016 17:06
Do you use nodemon for running quorra now?
maq
@maqboolkhan
Jul 04 2016 17:06
yes its awesome :)
Harish
@harishanchu
Jul 04 2016 17:06
Soon I will roll out Quorras own implementation
:smile:
I'm working on hot reload feature for Quorra cli
maq
@maqboolkhan
Jul 04 2016 17:07
ohhhh its awesome
Harish
@harishanchu
Jul 04 2016 17:07
Reloads will be quick with it
maq
@maqboolkhan
Jul 04 2016 17:07
@harishanchu i will suggest u that please update dependencies version
Harish
@harishanchu
Jul 04 2016 17:07
for which module?
@maqboolkhan
maq
@maqboolkhan
Jul 04 2016 17:08
consolidate
Harish
@harishanchu
Jul 04 2016 17:09
is it out of date?
maq
@maqboolkhan
Jul 04 2016 17:09
yes in 0.12.* twig was not included
:D
so i was not able to use tiwg
then i change to 0.14.1 now i can use twig
Harish
@harishanchu
Jul 04 2016 17:10
:+1: I will update with the next publish
maq
@maqboolkhan
Jul 04 2016 17:10
@harishanchu can i fork Quorra docs and start updating it?
Harish
@harishanchu
Jul 04 2016 17:11
which part?
maq
@maqboolkhan
Jul 04 2016 17:13
i mean service provider parts :D
Harish
@harishanchu
Jul 04 2016 17:15
That missing export statement right?
maq
@maqboolkhan
Jul 04 2016 17:15
hahah yes
and urlto.(name) part as well
Harish
@harishanchu
Jul 04 2016 17:16
Ok.. please do :smile:
maq
@maqboolkhan
Jul 04 2016 17:16
thanks i will :)
Harish
@harishanchu
Jul 04 2016 17:16
in controllers doc right?
maq
@maqboolkhan
Jul 04 2016 17:16
yes
Harish
@harishanchu
Jul 04 2016 17:17
I'm holding some changes here since some of the functionalities are not complete
maq
@maqboolkhan
Jul 04 2016 17:17
yes i can understand
Harish
@harishanchu
Jul 04 2016 17:17
but you can update those existing features docs
maq
@maqboolkhan
Jul 04 2016 17:17
ok ok
Harish
@harishanchu
Jul 04 2016 17:17
and thanks for your support :smile:
maq
@maqboolkhan
Jul 04 2016 17:17
and m working on all these function also available on views
as laravel do
so dont worry
:)
Harish
@harishanchu
Jul 04 2016 17:18
:smile:
I didn't add it globally on pupose
maq
@maqboolkhan
Jul 04 2016 17:18
ohhh why?
Harish
@harishanchu
Jul 04 2016 17:23
You have to add those helper methods to res.locals for each request to make it available in the views. But every one is not going to use it for all or any of their routes. For example rest requests don't even need views itself.
maq
@maqboolkhan
Jul 04 2016 17:24
yes
Harish
@harishanchu
Jul 04 2016 17:24
So I thought I will add it later and give control to the user whether to enable view helper methods or not
which can also be done as an external module, like you are trying to do.
maq
@maqboolkhan
Jul 04 2016 17:25
yes
m creating a package
:)
so user can install it if they need it
Harish
@harishanchu
Jul 04 2016 17:25
:+1:
maq
@maqboolkhan
Jul 04 2016 17:26
:)
maq
@maqboolkhan
Jul 04 2016 17:32
@harishanchu i have good news
i successfully created node packge :)
for Quorra
Harish
@harishanchu
Jul 04 2016 17:39
:+1:
What does it do?
maq
@maqboolkhan
Jul 04 2016 17:40
its incomplete right now but it do
HTML builder thing for Quorra
you can check if auth or guest
in ur views :)
Harish
@harishanchu
Jul 04 2016 17:40
Great
maq
@maqboolkhan
Jul 04 2016 17:41
will send u when it will be complete
Harish
@harishanchu
Jul 04 2016 17:41
:+1:
maq
@maqboolkhan
Jul 04 2016 17:42
aaa;0
:)