Update README.md
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user