Commit graph

12 commits

Author SHA1 Message Date
dana bb6feca8f4 Bump 0.3.1 -> 0.4.0 2020-04-22 12:49:50 -05:00
dana c7f9eb7514 Application: Update for new package versions, fix formatting 2020-04-22 12:49:50 -05:00
dana 3a89dfaf37 Bump 0.3.0 -> 0.3.1 2018-11-28 17:50:18 -06:00
dana 9cbe7e75f9 Significantly rework application: 0.3.0
- Get rid of Symfony Console application/command/input components

  These were causing me serious problems — not least of all was the fact that
  the Console argument parser chokes on command lines lke `twigc -j - foo.twig`.
  I am not happy with the way i've structured this, but i just needed to get it
  *done*, so here we are. If someone has any advice on to how to make this nicer
  (maybe break it up into different classes, &c.), i would be appreciative

- Add GetOpt.php for argument parsing and usage-help printing

  The usage help is really ugly, tbh. But whatever

- Support multiple input data sources at once

- Add `-E` short option for `--env`

- Display an error when `-E` is used without the appropriate `variables_order`
  configuration in place

- Add shell (`sh`) auto-escape method

- Simplify/eliminate a lot of code (handling of version numbers, validation, &c.)

- Change a lot of white space and formatting stuff (RIP `blame`)
2018-06-02 01:58:59 -05:00
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