Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use single quotes for paths in version helper #1477

Merged
merged 1 commit into from
May 28, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions elixir.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ elixir(function(mix) {

After generating the versioned file, you may use Laravel's global `elixir` PHP helper function within your [views](/docs/{{version}}/views) to load the appropriately hashed asset. The `elixir` function will automatically determine the name of the hashed file:

<link rel="stylesheet" href="{{ elixir("css/all.css") }}">
<link rel="stylesheet" href="{{ elixir('css/all.css') }}">

#### Versioning Multiple Files

Expand All @@ -260,9 +260,9 @@ elixir(function(mix) {

Once the files have been versioned, you may use the `elixir` helper function to generate links to the proper hashed files. Remember, you only need to pass the name of the un-hashed file to the `elixir` helper function. The helper will use the un-hashed name to determine the current hashed version of the file:

<link rel="stylesheet" href="{{ elixir("css/all.css") }}">
<link rel="stylesheet" href="{{ elixir('css/all.css') }}">

<script src="{{ elixir("js/app.js") }}"></script>
<script src="{{ elixir('js/app.js') }}"></script>

<a name="calling-existing-gulp-tasks"></a>
## Calling Existing Gulp Tasks
Expand Down