Skip to content

[Shade] - Create directive for importing components #17

@AntonioObra

Description

@AntonioObra

Based on the approach of including layouts in Shade @layout("default"), comonent directive could look something like this @component("button"), and it would include button.shade.php from /app/views/components/ folder. Second argument should be props like this

@component(name: "button", props: [
    "class_name" => "bg-red-500",
    "name" => "Click me!"
])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    In progress

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions