Skip to content

the @style directive actually builds a @class string #204

Description

@ericOrthoshop

Looks like the @Style directive was copy/pasted from the @Class one, so it doesnt actually work (BladeOne.php

https://github.com/EFTEC/BladeOne/blob/4.18/lib/BladeOne.php#L4323C1-L4331C6

protected function compileStyle($expression): string
{
    return $this->phpTag . "echo 'class=\"'.\$this->runtimeStyle($expression).'\"' ?>";
}

protected function compileClass($expression): string
{
    return $this->phpTag . "echo 'class=\"'.\$this->runtimeStyle($expression).'\"'; ?>";
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions