Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
more details for configuration file recipe
  • Loading branch information
kraih committed Feb 10, 2014
1 parent 8cec8d3 commit 0f6ee26
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/Mojolicious/Guides/Rendering.pod
Expand Up @@ -1010,9 +1010,13 @@ plugin.

Adding a configuration file to your application is as easy as adding a file to
its home directory and loading the plugin L<Mojolicious::Plugin::Config>. The
default name is based on L<Mojolicious/"moniker">, appended with a C<.conf>
extension (C<myapp.conf>).
default name is based on the value of L<Mojolicious/"moniker"> (C<myapp>),
appended with a C<.conf> extension (C<myapp.conf>).

$ mkdir myapp
$ cd myapp
$ touch myapp.pl
$ chmod 744 myapp.pl
$ echo '{name => "my Mojolicious application"};' > myapp.conf

Configuration files themselves are just Perl scripts that return a hash
Expand Down

0 comments on commit 0f6ee26

Please sign in to comment.