Skip to content

Commit

Permalink
Use variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Rook committed Sep 2, 2021
1 parent 44422bf commit 5bd8b82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/views/alpine.blade.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<div x-data x-init="fetch('{{ $frosty->endpoint() }}').then(response => response.text()).then(html => $el.innerHTML = html)">{{ $frosty->content() }}</div>
<div x-data x-init="fetch('{{ $endpoint }}').then(response => response.text()).then(html => $el.innerHTML = html)">{!! $content !!}</div>
2 changes: 1 addition & 1 deletion resources/views/native.blade.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<div data-fetcher="{{ $frosty->endpoint() }}">{{ $frosty->content() }}</div>
<div data-fetcher="{{ $endpoint }}">{!! $content !!}</div>

0 comments on commit 5bd8b82

Please sign in to comment.