accessing variable globally in marko template
We are using marko template engine in nodejs application. We have 3 marko layout header.marko layout.marko footer.marko header and footer layout render inside layout.marko when ever we create a new marko page (content page) we use layout marko like this <layout-use template="./../layout.marko"> and load marko like this this.body = marko.load("./views/home.marko").stream(data); Now we want to access a variably globally. i-e if we have a variable username='abc'. we want to access and display this name in header , layout or footer marko file. But we do not want to pass username for each content