--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious...@googlegroups.com.
To post to this group, send email to mojol...@googlegroups.com.
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/groups/opt_out.
> Mojolicious is such an elegant and clean framework, it has a chance to
> define or at least be at the forefront of what it means to write scalable,
> event-driven apps for any programming language. For example, the recentish
> 'continue()' method was a huge help. More development along these lines
> would be awesome.
>
> Scott
>
^ this, I'm busy jumping similar hurdles and could benefit from it as
well :D
It's also a major rewrite because blocking style does not easily lend itself to this.
...waypoints...
if($doc->{foo}) {
$next->continue;
} else {
$next->stop;
}
I would like to use the Test::Mojo module for external APIs (sites) testing.Something like this:my $t = Test::Mojo−>new( path => 'http://example.com/api/v3' );$t−>post_ok('/search.json' => form => {q => 'Perl'}) ... .
All the Mojo* scripts seem to use '/usr/bin/env perl' in their header.
...
Basically, it would save us time at each new Mojo* update if the
build/make code picked up the path of the perl binary used to build it.
FWIW, I'd be happy to contribute patch(es) to this effort if this is
something you'd consider.
$res = $t->get_ok(...)->tx->res;like( $res->json('/foo/bar'), qr(baz), "baz found" );rather than:$t->get_ok(...)->json_like('/foo/bar' => qr(baz));
Thats part of it ... I mean more of a plugin where you hand it a set of pages for login, request an account, failed, etc... .There's Mojolicious::Plugin::Authentication as well :)
Basically I am looking for something that would use M::P::A as part of it, but make that whole process much simpler. I know about how to write good logic for my apps, I don't want to have to worry about whether my login workflow is correct ...
I know it might seem trivial, but if you think about it, a good/correct login process flow is an important part of security. If you code something incorrectly, you can wind up letting the evil interwebs at your precious data ... something I'd like to avoid. Its not that I can't hack through this myself, its that there are some best practices for this.
Something akin to MojoX::Auth::Simple (http://search.cpan.org/~kimhawtin/MojoX-Auth-Simple-0.04.03/lib/MojoX/Auth/Simple.pm), but as a core part of the system. Convos::User shows part of what I am thinking of.
My thought, similar to Joe, I think, is that the Mojo built-in Login would be a best practices method (like with CSRF and Validation) that grants security, at least from a prototyping perspective.
My thought, similar to Joe, I think, is that the Mojo built-in Login would be a best practices method (like with CSRF and Validation) that grants security, at least from a prototyping perspective.I doubt there would be consensus on how exactly something like that should look like.
Let's say there could be. Would that be sufficient to approve?
$t->get_ok(...)->json_like('/foo/bar' => qr(baz));I'm on the edge about this, i can see it being useful but the inconsistency with the "is_deeply()" based json_is() (and json_message_is()) bugs me.
You two got anything specific in mind you could elaborate on?
So, assuming there is no clean path, how should I have begun in the first place using Mojo::IOLoop::Delay? It seems there are two distinct and incompatible ways to build a web app: blocking and non-blocking, with the former extremely well-documented and the latter only documented in functions and toy uses.
...please share!
Happy new year everyone!2013 has been a great year for Mojolicious and we've made a lot of progress, lets start 2014 by trying something new.In this thread you can post changes or features you would like to see in Mojolicious, no rules, just blurt away. :)P.S.: Our official roadmap can be found on GitHub. https://github.com/kraih/mojo/issues?labels=future&state=open
--sebastian
Is there a more concise means to accomplishing that? If not, could there be?
I want to have "before_render" hook.
1) ... 2) ... 3) ...
...then use $self->render_partial to
render the bits you need...
1.) app wide exception and not found templates / messages especially useful for json apps
2.) I would like to see mojo using JSON::XS automagically if installed. Pure perl json is awfully slow and coasts a lot of CPU.
Thanks!
1.) app wide exception and not found templates / messages especially useful for json apps
1.) app wide exception and not found templates / messages especially useful for json apps
Any concrete proposals?
sub render_exceptionsub render_not_found...
$r->set_render_not_found(\&mysub);$r->set_render_exception(\&mysub);
I'd be fine if there was an optional Mojo::JSON::C that was compiled at installation for those who chose to do so.
This is not going to happen in core, but i don't see a reason why there can't be a Mojo::JSON::XS module on CPAN that works similar to Mojo::Base::XS.
I'd be happy to work on it. Give me a few days to assemble the time. If someone beats me to it, so be it. But I should be able to get started in the next day or two... shouldn't be too big of a job. If I recall, though, JSON::XS isn't going to pass the Mojo::JSON tests, so we might have to accept a few discrepancies, documented of course.
--
I'll contribute any way I can. I don't think I could produce Mojo quality code but I'm happy to help test, document and support it.
You received this message because you are subscribed to a topic in the Google Groups "Mojolicious" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mojolicious/YK7SrFvEneY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mojolicious...@googlegroups.com.
$self->renderer->add_handler(json => sub {
my ($self, $c, $output, $data) = (@_);
$$output = JSON::XS->new->encode($data->{json});
});
Ah, okay didn't know that... what's your feeling on having an attribute
exposed in Mojolicious.pm that sets the JSON encoder/decoder class?