PHP Classes

File: tests/resources/templates/v11/test.blade.php

Recommend this page to a friend!
  Classes of Jorge Castro   BladeOne   ???   Download  
File: tests/resources/templates/v11/???
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: BladeOne
Standalone template engine that compiles into PHP
Author: By
Last change:
Date: 15 days ago
Size: 427 bytes
 

Contents

Class file image Download
@php
    $isActive = false;
    $hasError = true;
@endphp
<span @class([
    'p-4',
    'font-bold' => $isActive,
    'text-gray-500' => ! $isActive,
    'bg-red' => $hasError,
])></span>
<span class="p-4 text-gray-500 bg-red"></span>
@php
    $isActive = true;
@endphp
<span @style([
    'background-color: red',
    'font-weight: bold' => $isActive,
])></span>
<span style="background-color: red; font-weight: bold;"></span>