http://github.com/kraih/mojo/commit/66267f1d30d2acf477ed591b297c3bd8abd79b76
Feedback and possibly patches would be appreciated.
--
Sebastian Riedel
http://labs.kraih.com
http://mojolicious.org
http://twitter.com/kraih
--
You received this message because you are subscribed to the Google Groups "Mojolicious" group.
To post to this group, send email to mojol...@googlegroups.com.
To unsubscribe from this group, send email to mojolicious...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mojolicious?hl=en.
# Wrong
sub bye {
my $self = shift;
# Render response
$self->render(text => 'Good bye!');
}
# Right
sub welcome {
my $self = shift;
# Render response
$self->render(text => 'Welcome!');
}
2010/6/15 David Davis <xan...@xantus.org>:
Thanks, fixed.
Ideas? :)
I expected this to come up sooner or later and i have to say that i strongly disagree.
We don't need more examples (at least none written instead of actual documentation), there are many on github already, doing pretty much everything you listed.
Here's a good overview of what i'm aiming for.
http://jacobian.org/writing/great-documentation/what-to-write/
So far we have Tutorials and Reference well covered, so i'm focusing on Topical Guides.
How about a guide to the template rendering flow - a good explanation of
how all the little fiddly bits hook together when templates are
rendered: template names and named routes, what does the default handler
do, when a template in the template_dir is picked up vs a template in
the data section, partial rendering (layouts), what all the reserved
keywords in the stash and what are they used for, etc.
Also, template rendering isn't just Ep - the guide should explain what
features are only in Ep and what are available elsewhere (for example,
the Haml renderer has helpers, the TT one doesn't).
- Dotan
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
but in my git branch... :)
Funny, i'm working on this guide right now. :)
Rendering and Template
Offten Used Utilities(Mojo::Message::Request, Mojo::Log, MojoX::Type,
Mojo::Home etc)
Session(session, flash, etc)
Plugin system(before_dispache, add_helper, etc)
Testing
Deployment(Single server, Prefork server, CGI, or Fast CGI, PSGI, mod_perl)
HTML5 Features(WebSocket, etc)
Advanced Features(SSL support, Performance, etc)
2010/6/15 Sebastian Riedel <kra...@googlemail.com>: