posthtml-include icon indicating copy to clipboard operation
posthtml-include copied to clipboard

scope visible and transport scope binding

Open Scrum opened this issue 5 years ago • 0 comments

Thank you for the response. That's interesting, I had missed that one.

Will see if I can work with it, even though what I'm looking for is probably some way to dynamically set/send/extend variables/options.

A.html
<include src="B.html" locals='{
  "location": "Los Angeles"
}'></include>

B.html
<include src="contact.html" locals='{
  "location": {{ location }},
  "department": "dep"
}'></include>

contact.html
<h1 class="{{ department }}">Hi {{ location }}</h1>

I'll close this for now, as I realize this is probably outside of the scope of this module :)

Originally posted by @Znarkus in https://github.com/posthtml/posthtml-include/issues/49#issuecomment-673527647

Scrum avatar Aug 14 '20 06:08 Scrum