<?php
namespace PpPhp\Plugins;
use PpPhp\Core\ViewPlugin;

class Custom implements ViewPlugin
{
    public static function id(): string { return 'Custom'; }
    public static function label(): string { return 'Custom'; }
    public static function version(): string { return '1.0.0'; }
    public static function description(): string { return 'Displays the value as escaped plain text.'; }
    public static function render(mixed $value, array $settings): string {
        return htmlspecialchars($value ?? '');
    }
    public static function settingsSchema(): array { return []; }
    public static function assets(): array { return ['js'=>[], 'css'=>[]]; }
}