Closed treeder closed 3 years ago
I understand you can do this if you use marko with another server, but it would be nice to be able to do this with marko serve. Basically just to have some data passed into the input so the full page has access to the data.
input
Is this possible right now?
What works best is to load the data at the page level. Eg you can:
index.marko
<my-layout> <await(fetchDataSomeHow())> <@then|data|> <my-app data=data/> </@then> </await> </my-layout>
I understand you can do this if you use marko with another server, but it would be nice to be able to do this with marko serve. Basically just to have some data passed into the
input
so the full page has access to the data.Is this possible right now?