Commit graph

31 commits

Author SHA1 Message Date
dana bb6feca8f4 Bump 0.3.1 -> 0.4.0 2020-04-22 12:49:50 -05:00
dana 05ce587f84 tests: Update expected output for js escape method 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 c76ce18517 Composer: Update dependencies (compatibility with PHP 7.4) 2020-04-22 12:49:50 -05:00
dana 5de5948cdd Makefile: Improve install target, update phonies 2020-04-22 12:46:10 -05:00
dana 3a89dfaf37 Bump 0.3.0 -> 0.3.1 2018-11-28 17:50:18 -06:00
dana d855eca3cc Update dependencies 2018-11-28 17:50:08 -06:00
dana dd16763ae9 Add zsh completion function 2018-06-27 18:38:13 -05:00
dana 532b078376 Merge 0.3: Major code restructuring, new features, more documentation
Merge branch 'dev/0.3'
2018-06-02 02:00:14 -05:00
dana 33e945b4bc Update README 2018-06-02 01:58:59 -05:00
dana aa45391808 Improve Makefile 2018-06-02 01:58:59 -05:00
dana 97f8acb902 Add unit tests 2018-06-02 01:58:59 -05: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
dana 37528fc72e Update Composer dependencies 2018-06-02 01:48:22 -05:00
dana 497b9d5e54 Update .gitignore 2018-06-02 01:48:22 -05:00
dana f453680b04 Fix licence formatting 2018-06-02 01:48:22 -05:00
dana f294101183
Support environment variables as input data; add JSON escape strategy
Merge pull request #1 from peets/master
2018-02-18 16:45:47 -06: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
peets 593f69d0c1 Ignore phar.readonly directive when compiling phar 2018-01-14 15:53:07 -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 c8deccc83d Add README 2016-07-24 16:03:26 -05:00
dana bfa53de347 Add LICENCE 2016-07-24 16:03:26 -05:00
dana 9a07d225f9 Add Makefile 2016-07-24 16:03:26 -05:00
dana 48fb6be6e6 Add source 2016-07-24 16:03:26 -05:00
dana 296717820c Add composer.json, composer.lock 2016-07-24 16:03:25 -05:00
dana ab99129af5 Add gitignore 2016-07-24 16:03:25 -05:00