Skip to content

Commit

Permalink
mention that asset names should be reasonably unique
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 20, 2015
1 parent b3a9307 commit 1b58d63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

5.73 2015-01-20
5.73 2015-01-21
- Deprecated Mojolicious::Routes::Route::bridge in favor of
Mojolicious::Routes::Route::under.
- Deprecated Mojolicious::Controller::render_exception in favor of
Expand Down
5 changes: 3 additions & 2 deletions lib/Mojolicious/Guides/Rendering.pod
Expand Up @@ -1080,8 +1080,9 @@ plugins, even if you plan to release them to CPAN.
$ mkdir templates
$ echo '%= javascript "/alertassets.js"' > templates/alertassets.html.ep

Just append their respective directories to the list of search paths when
C<register> is called.
Just give them reasonably unique names, ideally based on the name of your
plugin, and append their respective directories to the list of search paths
when C<register> is called.

package Mojolicious::Plugin::AlertAssets;
use Mojo::Base 'Mojolicious::Plugin';
Expand Down

0 comments on commit 1b58d63

Please sign in to comment.