geekish/statamic-ray

Tag & modifier for Ray in Statamic

1.0.0 2021-03-13 20:00 UTC

This package is auto-updated.

Last update: 2024-04-14 02:34:58 UTC


README

A very simple addon for Statamic 3 adding a Ray tag & modifier.

Installation

You can install the package via composer:

composer require geekish/statamic-ray

Usage

Pretty much the same as the dump tag & modifier, except output is sent to Ray.

Tag

The tag with no arguments will send the current context. Like the dump tag, it excludes possibly sensitive information like your config.

{{ ray }}

Again, like the dump tag, it can be used inside loops.

{{ entries }}
  {{ dump }}
{{ /entries }}

You can also send a single variable.

{{ ray:my_variable }}

Modifier

{{ my_variable | ray }}

License

The MIT License (MIT). Please see License File for more information.