Skip to content

New and improved front matter in Blade idea using a directive #2457

Description

@emmadesilva

Have this idea for front matter in HydePHP that is just a void directive we can use static parsing for. Possible drawback is that compared to the current syntax it wouldn't be available to PHP as well (but maybe the directive can "share" to the view otherwise, or at least to the page). But the benefit is that it's easier to do multi line options, and nested items. And a more similar syntax to the Markdown pages.

@matter('navigation.title' => 'foo')
@matter
navigation:
    title: foo
@endmatter

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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