Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide let bindings to meta attributes #23

Open
eWert-Online opened this issue Feb 26, 2024 · 0 comments
Open

Provide let bindings to meta attributes #23

eWert-Online opened this issue Feb 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@eWert-Online
Copy link
Member

Meta Attributes on Pages and Components should be extended in a way, that functions do not get evaluated until the end. Only after the body got rendered, the provided functions get evaluated - recieving the top level let bindings as input.

page BlogPost(
  label: "Blog Post",
  displayName: fun (title) -> "Blog - " ++ title,
) {
  let title = #String(label: "Title");
}
@eWert-Online eWert-Online added the enhancement New feature or request label Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant