TRACT: Embed Lua and Fennel code in your Perl scripts
use strict;
use warnings;
use JSON::MaybeXS;
use Cpanel::JSON::XS;
use FFI::Platypus 2.00;
our $VERSION = '1.0.0';
BEGIN {
# This context h
$context{ffi}->function('inline_lua_free_string' => ['opaque'] => 'void');
$context{json} = JSON::MaybeXS->new(utf8 => 1, allow_nonref => 1);
*new = sub {
my ($class, %args) = @
::JSON::XS::true() : Cpanel::JSON::XS::false()) : Cpanel::JSON::XS::true(),
sandboxed => defined $args{sandboxed} ? ($args{sandboxed} ? Cpanel::JSON::XS::true() : Cpanel::JSON: