I was just looking through the Elements Language Docs and noticed there was no mention about what data from the site or current page was exposed to custom elements via the API?
For instance, I’ve been considering building a site nav that visually highlights the current page/section (ie. /about, /articles/*, etc), but I currently can’t find anyway to ascertain which page (or path) the component is being used on. Essentially I’d like to be able to this:
- Home
- About
<!-- you are here -->
- News
- Contact
And not just this,
- Home
- About
- News
- Contact
In order to be able to better indicate to users where they are in the site.
This would also be essential for creating any sort of breadcrumb navigation within a site.