Templates
The following extensions have been made to Blade in order to make working with Braid easier.
@braid
(since v0.0.57)
Will return true
if the pattern is within the context of Braid. Useful if you need to disable (or enable) certain aspects of your templates if they’re being shown within Braid.
1
2
3
@braid
[this content will only show within Braid]
@endbraid
1
2
3
@unlessbraid
[this content will only show outside of Braid]
@endbraid