text4u
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

antlers.php 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Version
  6. |--------------------------------------------------------------------------
  7. |
  8. | The desired Antlers language version to utilize. Supported values are
  9. | "runtime" for the modern parser, or "regex" for the legacy parser.
  10. |
  11. */
  12. 'version' => 'runtime',
  13. /*
  14. |--------------------------------------------------------------------------
  15. | Debugbar
  16. |--------------------------------------------------------------------------
  17. |
  18. | Defaults to true. Set to false to disable antlers template profiling in
  19. | the Laravel Debugbar package (when enabled).
  20. |
  21. */
  22. 'debugbar' => env('STATAMIC_ANTLERS_DEBUGBAR', true),
  23. /*
  24. |--------------------------------------------------------------------------
  25. | Guarded Variables
  26. |--------------------------------------------------------------------------
  27. |
  28. | Any variable pattern that appears in this list will not be allowed
  29. | in any Antlers template, including any user-supplied values.
  30. |
  31. */
  32. 'guardedVariables' => [
  33. 'config.app.key',
  34. ],
  35. /*
  36. |--------------------------------------------------------------------------
  37. | Guarded Tags
  38. |--------------------------------------------------------------------------
  39. |
  40. | Any tag pattern that appears in this list will not be allowed
  41. | in any Antlers template, including any user-supplied values.
  42. |
  43. */
  44. 'guardedTags' => [
  45. ],
  46. /*
  47. |--------------------------------------------------------------------------
  48. | Guarded Modifiers
  49. |--------------------------------------------------------------------------
  50. |
  51. | Any modifier pattern that appears in this list will not be allowed
  52. | in any Antlers template, including any user-supplied values.
  53. |
  54. */
  55. 'guardedModifiers' => [
  56. ],
  57. ];