geekish / statamic-ray
Tag & modifier for Ray in Statamic
Installs: 2 250
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- spatie/laravel-ray: ^1.0
- statamic/cms: ^3.0
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.