Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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.


Its not realistically going to give you much of a productivity boost over having two or three files.


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...


Scotty/blaze for Haskell as well.


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


flask can?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: