Commit Graph
46 Commits
Author SHA1 Message Date
José Valim b83cd9b514 Ensure blocks do not clobber eex buffer 2015-05-11 23:07:26 +02:00
Or Neeman 9e9fe04dae EEx: allow ) after end in end tokens
Closes #3017
2015-04-10 20:49:06 -06:00
Or Neeman 0a1859b6a3 Refactor trim mode 2015-03-25 19:31:01 -06:00
Or Neeman d90f6ed858 EEx: Add trim option
If the `trim` option is used, trims around EEx tags:
- On left, up to the line break if all whitespace
- On right, up to and including the line break if all whitespace

Does not trim around quotations (`<%% %>`), but does trim around
any tags inside a quotation.

Closes #3154
2015-03-23 19:26:18 -06:00
Or Neeman 18998d974f EEx: convert tag type markers to char lists 2015-03-22 13:36:54 -06:00
Or Neeman 135d02e6cc EEx: fix interpolation inside quotations
Closes #3159
2015-03-22 09:00:34 -06:00
José Valim ef0009daaa Unify error reporting from EEx, closes #2833 2014-10-21 11:25:20 -02:00
Shayan Pooya 0ca9d1663d fix typos 2014-10-16 12:50:12 -05:00
José Valim 058b157b36 Remove deprecated features and deprecate soft ones 2014-07-12 16:23:17 +02:00
José Valim 071b0830f8 Ensure line numbers are properly preserved in EEx, closes #2485 2014-07-04 11:54:07 +02:00
José Valim c8a0158791 Add @external_resource attribute, closes #2455 2014-06-27 22:16:34 +02:00
José Valim 7ba3c3cfb7 Revert "EEx tests aware of CR+LF newline on Windows"
This reverts commit f60d3668ed.
2014-05-31 09:58:29 +02:00
chyndman f60d3668ed EEx tests aware of CR+LF newline on Windows 2014-05-28 10:25:16 -07:00
José Valim 68dd952b45 More deprecations around tuples and records 2014-05-17 16:13:02 +02:00
José Valim 4df91f14ee Fix bug in for comprehensions 2014-04-24 11:27:49 +02:00
José Valim 56f15d9f4e Do not add spaces after { and before }
This makes the source code consistent with the result
returned by inspect/2.
2014-04-21 19:06:35 +02:00
Igor Kapkov 97e70e6de1 change some doc examples to iex style 2014-04-12 08:41:22 +02:00
Eric Meadows-Jönsson f7d0c8c58e Add handle_body/1 callback to EEx.Engine 2014-04-08 19:17:59 +02:00
José Valim 4847214766 Do not fill in stacktraces on protocol dispatch 2014-04-07 19:05:02 +02:00
José Valim 325c98ccbd Remove line and convert text tokens to char lists 2014-04-06 14:14:47 +02:00
José Valim 26f5f640c9 Initial work on traversable 2014-03-05 08:08:43 -08:00
José Valim 3512c1a860 Start migrating lc to for comprehensions 2014-02-17 14:45:04 +01:00
José Valim fe2e4a1010 Move from // to \\ 2014-01-28 10:50:00 +01:00
Devin Torres f42055be57 Allow EEx.AssignsEngine to accept any Dict.t 2014-01-13 15:21:26 -06:00
José Valim 0aff2a3139 Compile with relative paths and include apps in stacktraces
Closes #1964, closes #1861
2014-01-07 11:30:44 +01:00
José Valim 5e2ea082d1 Deprecate __FILE__ in favor of __DIR__ or __ENV__.file 2014-01-02 18:10:59 +01:00
José Valim 0267f312b1 Fix handling of nested do expressions in EEx, closes #1710 2013-09-12 10:59:48 -03:00
José Valim 3e1099830a Properly handle @file that comes from warnings 2013-08-20 11:39:29 +02:00
José Valim cea31f69dc Review and deprecate list <-> binary conversion 2013-08-14 11:16:37 +02:00
José Valim 7ed1f2cbef EEx exprs should receive binaries and use Behaviour 2013-07-20 16:35:32 +02:00
José Valim cdd8e5862d Rename the ExUnit option from debug to trace 2013-07-01 16:41:34 +02:00
José Valim 3bac4ddec6 Support --debug on internal tests which are not run through mix 2013-07-01 14:20:33 +02:00
Rafael Mendonça França 7cdc25538e Uniform use of whitespace after commas on codebase
This make easier to read and also follow some standard in the code
2013-06-15 16:52:48 -03:00
José Valim 6d2569ff9b Merge pull request #1023 from alco/eex-unicode
Add support for unicode to EEx.Tokenizer
2013-05-06 16:21:56 -07:00
Alexei Sholik ce39f23388 Add support for unicode to EEx.Tokenizer 2013-05-07 02:14:48 +03:00
José Valim cbe82e0912 Add __DIR__, closes #1019 2013-05-06 11:03:37 -06:00
José Valim fda6f0ce09 Move path related functions from File to Path 2013-01-19 09:36:03 -07:00
José Valim 626ed9532b Erlang. syntax is deprecated in favor of simply using atoms 2012-10-05 17:08:22 -07:00
José Valim adbe6fc3b6 Support <%% and <%# in EEx, closes #287 2012-10-03 21:42:10 -07:00
José Valim fe381f970e Break IEx into its own application 2012-09-06 13:50:51 +02:00
José Valim 68828d2b49 Code.require_file and Code.load_file now expect the full name as argument 2012-08-21 11:21:21 -03:00
José Valim 61a27d1be6 Remove the need for special <& &> tags, closes #393 2012-07-21 18:40:57 +02:00
José Valim cc99da19dc Simplify EEx.Tokenizer 2012-07-20 23:04:05 +02:00
José Valim 2c396b9cc1 Make the default for ExUnit case to be sync 2012-07-16 15:29:28 +02:00
José Valim d59f2f9e16 Allow env as a @file argument 2012-07-09 23:04:21 +02:00
José Valim d5031b6347 Move all code to erlang style apps 2012-07-05 20:20:16 +02:00