I am new to Adonisjs and I am trying to load header, footer and the view file from controller in a common template and display the data from controller in the view file.
Kindly help me get through this. Thanks
I am new to Adonisjs and I am trying to load header, footer and the view file from controller in a common template and display the data from controller in the view file.
Kindly help me get through this. Thanks
you can try use @include('yourfolder.view')
, refer this documentation https://edge.adonisjs.com/docs/partials