I want to use config function in XML file to render the phtml file same as below that we use in magento 1.x.x
<reference name="root">
<action method="setTemplate" ifconfig="mymodule/general/enabled"><template>page/1column.phtml</template></action>
</reference>
How can I do it on magento2.
I have created my config function in helper and want to use these function to render the phtml, based on configuration setting.