mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Add support for Blade-style @class and @style directives
This commit is contained in:
parent
668feea9e9
commit
11ef5dcfff
5 changed files with 44 additions and 6 deletions
|
|
@ -46,7 +46,10 @@
|
|||
<p>The full class name is {get_class(new Push)|escape}, {Push::class} really.</p>
|
||||
@enddesktop
|
||||
|
||||
<div class="barContainer" data-bar="{$bar|json}"></div>
|
||||
<div class="barContainer" data-bar="{$bar|json}">
|
||||
<span @class(['a-1', 'font-normal' => $foo, 'text-blue' => false, 'bg-white' => true])></span>
|
||||
<span @style(['border-radius: 0.25rem', 'margin: 1rem' => Context::get('bar'), 'padding: 2rem' => false])></span>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
const bar = @json($bar);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue