Commit graph

8 commits

Author SHA1 Message Date
peets 281b50438a Add json escape strategy 2018-02-18 17:14:03 -05:00
peets dfcf0349ca Support using environment variables as input data
This uses the $_ENV superglobal, which is an empty array unless the
variables_order ini directive contains "E"; see
http://php.net/manual/en/ini.core.php#ini.variables-order.

Environment variables have lower precedence than input data passed via
other means, e.g.

    $ echo '{{USER}}' | twigc --env
    peets
    $ echo '{{USER}}' | twigc --env -p USER=foo
    foo
2018-02-18 17:13:54 -05:00
dana c85e24602d Improve auto-loader resolution 2016-07-31 19:03:27 -05:00
dana 0403b21af7 Auto-detect escaping method (default to no escaping), learn some new boolean values 2016-07-29 23:08:56 -05:00
dana 999530151e Remove dis-used file 2016-07-29 22:15:27 -05:00
dana d5ae7c4e73 Add --cache option 2016-07-24 16:22:41 -05:00
dana 36d2d6d99d Fix over-zealous test excludes in PharCompiler 2016-07-24 16:22:31 -05:00
dana 48fb6be6e6 Add source 2016-07-24 16:03:26 -05:00