In Laravel someone can easily write
Blade::extend(function($value) {
return preg_replace('/\@define(.+)/', '<?php ${1}; ?>', $value);
});
for custom syntax
Is this possible with your package and how? Method extend exists only in class Illuminate\View\Compilers\BladeCompiler.php