Passing a varible from Template to Layout

Hello, on my login.antlers.html template I have

---
bodyClass: account
pageCriticalStyles_local: css/account.css
pageCriticalStyles_prod: css/account.min.css
---

And I am trying to pass that into my account layout. I thought I would just use {{ view:pageCriticalStyles_local }}. This isn't working though?

Adding {{ view | dump }} to layout shows that pageCriticalStyles_local is not available?

Documentation https://statamic.dev/variables suggests what I am doing should work?

>>>>>>> Unanswered <<<<<<<
1 Reply
2 Followers