Include condition "if"

Hello

I would like to exclude an include for a particular route
I do not yet know the possible conditions with edge

Example:

// layouts/master.edge
@if(route) 
@include('partials')
@endif

Thanks

Hi @nikoola!

You can use url global to get route and then use it in if
https://adonisjs.com/docs/4.1/views#_url