diff --git a/src/directives.php b/src/directives.php index aff8178..a752e9f 100644 --- a/src/directives.php +++ b/src/directives.php @@ -392,5 +392,20 @@ 'endhaserror' => function () { return ''; }, + + /* + |--------------------------------------------------------------------- + | @set + |--------------------------------------------------------------------- + | + | This directive can be used to define a variable. + | Usage: @set(name, value) + | + */ + + 'set' => function ($expression) { + list($name, $val) = explode(',', $expression); + return ""; + }, ];