Skip to content

Leaf Docs appear to show incorrect syntax for rendering partials #120

@kczx3

Description

@kczx3

In the below file, it is stated that the $template variable is available in all BareUI templates for rendering partials and states to call the render method on this variable. Unfortunately, this variable contains a string value, specifically static::class which resolves to "Leaf\BareUI". Perhaps you meant to use the scope resolution operator (::) here instead since render is a static method?

<?php echo $template->render('partials/header'); ?>

echo $template->render('partials/footer', [

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