Sage support for Blade's @once directive?

Blade has a @once directive that’s just what I need at the moment. But, it doesn’t seem to work in Sage.

Doing something like this…


…successfully pushes the script tag to the ‘scripts’ stack, but the @once directive appears to be ignored. @once and @endonce just end up as strings in the markup.

Is @once supported in Sage?

What Sage are you using? Sage 9, Sage 9 update branch or Sage 10?

According to Blade documentation, the @once directive became available with Blade 7.x.

From what I understand, Sage 9 uses the standalone Blade compiler from illuminate/view:

This topic was automatically closed after 42 days. New replies are no longer allowed.