Re:Mojolicious – Perl real-time web framework
by fibo on Monday July 28, 2014 @08:14AM
(#8096253)
Mojolicious is best Perl web micro framework, remember that the Author also started catalyst. Dancer is similar but I don't like dsl. Mojo is very fast, powerful and expressive with a lor of features, mature and more perlish. Try Mojolicious::Lite, there is no other web Framework that can write an app in a single,file.
[ Parent
| on HN ]
Re:Mojolicious – Perl real-time web framework
by matthewmacleod on Monday July 28, 2014 @08:25AM
(#8096294)
Flask, Sinatra, Rails, Express… actually, there are a lot of them.
As far as I can see this is no full single file app: The template is stored separately. In Mojolicious::Lite you can bundle all html/css etc. templates and even images (as base64) in the data section of the file.
We are all arguing that you can bundle a whole app into a single file as if it was a good thing.
Yes, it is really good if you need to prototype quickly.
Then you can use mojo inflate command to turn a single app file into a Mojo project.
Re:Mojolicious – Perl real-time web framework
by collyw on Wednesday July 30, 2014 @03:14AM
(#8106785)
Its not realistically going to give you much of a productivity boost over having two or three files.
Re:Mojolicious – Perl real-time web framework
by grimgrin on Tuesday July 29, 2014 @10:01PM
(#8106017)
In fairness, if you really wanted to do it in one file, you'd just pass an html string to an instantiated django.template.Template()
https://docs.djangoproject.com/en/dev/ref/templates/api/#com...
Re:Mojolicious – Perl real-time web framework
by codygman on Monday July 28, 2014 @11:04PM
(#8100506)
Scotty/blaze for Haskell as well.
Re:Mojolicious – Perl real-time web framework
by nicomen on Tuesday July 29, 2014 @11:24AM
(#8102695)
A single file? Bah that's too complex!
$ perl -Mojo -lE 'a("/foo", { text => "lol" })->start' get /foo
lol
For more fun: http://mojolicio.us/perldoc/ojo
Re:Mojolicious – Perl real-time web framework
by william20111 on Monday July 28, 2014 @08:15AM
(#8096257)
flask can?