Skip to content

Commit 01a6a0b

Browse files
committed
Pass params to view so they can be interrogated
1 parent fd690cc commit 01a6a0b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

resources/views/output.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<img src="{{ $src }}" {!! $params !!} />
1+
<img src="{{ $src }}" {!! $render_params !!} />

src/Tags/BlurHash.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ public function index()
7979

8080
return view('statamic-blurhash::output', [
8181
'src' => $this->decode($hash),
82-
'params' => $this->renderAttributesFromParams(['image']),
82+
'params' => $this->params,
83+
'render_params' => $this->renderAttributesFromParams(['image']),
8384
]);
8485
}
8586

0 commit comments

Comments
 (0)