Update README.md

This commit is contained in:
dlage
2015-04-05 18:49:59 +01:00
parent 9a72baec52
commit c60f2c4192
+9 -1
View File
@@ -38,7 +38,15 @@ In your base mojo class:
); );
$assets->copy_files(); $assets->copy_files();
$self->helper( $self->helper(
'asset_url' => sub { my $self = shift; $assets->asset_url(@_); }, ); 'asset_url' => sub {
my $self = shift;
$assets->asset_url(@_);
},
);
```
Then, in you templates:
```perl
<%= link_to 'my versioned asset' => asset_url('bootstrap-3.3.4-dist/js/bootstrap.js') %>
``` ```
##SUPPORT AND DOCUMENTATION ##SUPPORT AND DOCUMENTATION