1
0
Fork 0
mirror of https://github.com/archtechx/gloss.git synced 2025-12-13 03:34:03 +00:00

Conditional overrides

This commit is contained in:
Samuel Štancl 2020-12-13 20:28:33 +01:00
parent fbf5049110
commit 914bdfb296
5 changed files with 143 additions and 26 deletions

View file

@ -130,7 +130,7 @@ Gloss::extend('foo.pagination', fn ($value, $replace) => $replace($value, [
':total' => '<span class="font-medium">:total</span>',
]));
Gloss::get('test.pagination', ['start' => 10, 'end' => 20, 'total' => 50])
Gloss::get('foo.pagination', ['start' => 10, 'end' => 20, 'total' => 50])
// Showing <span class="font-medium">10</span> to <span class="font-medium">20</span> of <span class="font-medium">50</span> results
```