On Thu, Sep 18, 2014 at 12:53 PM, sri <[email protected]> wrote:

> get '/' => {template => 'index'};


While I appreciate the clarity, one of the things that I loved to see as a
newbie (and still 2 years later as a newbie) is get '/' => 'index'.  "Man
that's easy!"  If more clarity is desired, I'd prefer to see them in
comments:

get '/' => 'index'; # Index is the name of the route and a route's default
action is a template if one exists by the name.

or

get '/' => 'index'; # Short for get '/' => {template => 'index'};

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to