The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

shopify-liquid-verify.pl - Verifies the syntax of liquid files.

SYNOPSIS

shopify-liquid-verify.pl [files]

        files           The list of files and folders to check.

        --base          Optionally specifies the path to a base
                        liquid implementation. If no --class
                        is specified attempts to determine
                        the class. Takes paths or package names.
                        
        --class         Specifically sets the class to use for
                        the liquid parser. By default, this is
                        WWW::Shopify::Liquid. If --base is used,
                        will attempt to automatically determine.
        
        --verbose       Displays extra info.
        --quiet         Suppress everything except errors.
        
        --help          Displays this messaqge.
        --fullhelp      Displays the full pod doc.

This tool essentially prints out whether or not it thinks a file's liquid is correct, in terms of sytnax. If it finds an issue, it'll point out the first error in that file. Otherwise it'll print OK.

By default, the behaviour of this script is recursive, meaning if you specify a directory amongst your file listing, this script will expand it and look at the subfolders.

EXAMPLES

        shopify-liquid-verify.pl *

Will essentially look at all files in the folder, and give you a print out of their status.

        shopify-liquid-verify.pl * --base WWW::Shopify::Liquid::Extended
        

If WWW::Shopify::Liquid::Extended exists, and is installed in a normal inclusion pathway, this class will be used to perform the verification.

        shopify-liquid-verify.pl test.liquid --base ~/MyLiquidClass.pm
        

Will load MyLiquidClass.pm and attempt to determine the primary class, and use that for the base verification.

        shopify-liquid-verify.pl  test.liquid --base ~/MyLiquidClass.pm --class NewLiquid
        

Will load MyLiquidClass.pm and specifically tell it to use NewLiquid as hte base class.