I am using a component where there is need of dynamic dropdown. The options are configured in the page properties. But I am unable to get currentPage Object in datasource.html file. Below is the structure of my component.

And datasource calling the wcmpojo class. Below in the flow.

datasource.html
<sly data-sly-use.data="${'apps.myprj.components.content.tabcontent.HtlDatasourceExample' @ text=currentPage.path}"> </sly>
HtlDatasourceExample is getting call and returning correct response if values are hardcoded.
Issue is unable to get sling objects in HtlDatasourceExample such as currentPage.
Thanks