Commit graph

641 commits

Author SHA1 Message Date
Chris Wong
344df28f90 Release 0.6.0 2015-09-16 12:36:17 +12:00
Chris Wong
a940856383 Fix doctests 2015-09-16 12:31:13 +12:00
Chris Wong
5676895dd9 Make Escaper own the wrapped writer, not borrow it 2015-09-16 12:03:09 +12:00
Chris Wong
b50a3be6f6 Handle hyphens in attribute and element names
Closes 
2015-09-15 17:51:27 +12:00
Chris Wong
059b82e091 DON'T PANIC
Closes 
2015-09-15 13:38:32 +12:00
Chris Wong
aee18ee06f Clean up parser a bit 2015-09-14 22:16:01 +12:00
Chris Wong
c68f98d3a7 Expose Escaper type 2015-09-12 18:48:14 +12:00
Chris Wong
6030eed9f7 Rename write_html! to html_utf8!
The new name makes it clear what the macro is doing: encoding the output
to UTF-8.
2015-09-12 14:21:01 +12:00
Chris Wong
37835b3b24 Rename $if and $for to #if and #for
`#if` and `#for` aren't splices. They are a different concept, so should
have different syntax as well.
2015-09-12 13:53:14 +12:00
Chris Wong
59360c719c Release 0.5.1 2015-09-08 13:15:05 +12:00
Chris Wong
ebbd5d2e54 Add a write_html! macro
This handles the common case of wrapping the stream in a `Utf8Writer`.
2015-09-07 19:46:06 +12:00
Chris Wong
44ca2aa82b Check that the writer implements fmt::Write first 2015-09-07 11:47:25 +12:00
Chris Wong
86c515e5c3 Fix typo in documentation 2015-09-07 11:47:00 +12:00
Chris Wong
0286287196 Release 0.5.0 2015-09-06 13:00:47 +12:00
Chris Wong
cdcacab1ea Add Utf8Writer 2015-09-06 12:59:41 +12:00
Chris Wong
4c6fe05395 Use match instead of let to hold on to the writer
This fixes a bunch of lifetime issues
2015-09-06 12:10:55 +12:00
Chris Wong
136d8abdf6 Update: rename LitBinary to LitByteStr 2015-09-06 11:26:57 +12:00
Chris Wong
28b1624f4c Rename write_html! to html!
It's more concise
2015-09-03 11:06:05 +12:00
Chris Wong
ab45846e1e Use more friendly names in renderer 2015-09-01 18:56:02 +12:00
Chris Wong
1badbd9df2 De-closureify the API
Closes 
2015-09-01 18:26:50 +12:00
Chris Wong
abbb565412 Release 0.4.4 2015-07-31 17:37:05 +12:00
Chris Wong
6d59013f1b Update Rust 2015-07-31 17:33:50 +12:00
Chris Wong
e66723b80b Release 0.4.3 2015-07-03 11:01:12 +12:00
Chris Wong
46fab1372b Allow nested macro invocations
Closes 
2015-07-03 10:59:34 +12:00
Chris Wong
d8b76db92f Add warning 2015-05-28 19:15:56 +12:00
Chris Wong
dd97989a2b Travis: Use Rust Nightly 2015-05-26 22:35:10 +12:00
Chris Wong
543adf78c0 Fix formatting 2015-05-01 19:56:06 +12:00
Chris Wong
36c9792d0a Release 0.4.2 2015-04-30 16:36:47 +12:00
Chris Wong
3c854d342c Add regression test for 2015-04-30 16:33:24 +12:00
Chris Wong
d6677b3319 Borrow spliced values instead of moving them
Closes 
2015-04-30 16:32:15 +12:00
Chris Wong
054453be88 Travis: use container-based infrastructure
http://docs.travis-ci.com/user/workers/container-based-infrastructure/
2015-04-15 18:18:12 +12:00
Chris Wong
24e390047e Release 0.4.1 2015-04-13 20:42:47 +12:00
Chris Wong
4653b2e2d8 Add html_debug! macro; remove print-expansion feature 2015-04-13 20:41:12 +12:00
Chris Wong
86c6edafae Release 0.4.0 2015-04-11 10:26:43 +12:00
Chris Wong
e5711929e3 print-expansion for all your expansion printing needs 2015-04-11 10:19:28 +12:00
Chris Wong
d7d5679e6e Fix typo 2015-04-10 20:21:09 +12:00
Chris Wong
180becbee4 Coalesce the contents of blocks as well 2015-04-10 19:02:36 +12:00
Chris Wong
dfbd4e2880 Rename a bunch of things 2015-04-10 19:02:36 +12:00
Chris Wong
c507571c5d Coalesce adjacent writes
Fixes 
2015-04-10 19:02:14 +12:00
Chris Wong
e3998645f6 API comment conventions redux 2015-04-08 22:51:21 +12:00
Chris Wong
3c4f892d29 Update Rust 2015-04-08 22:43:48 +12:00
Chris Wong
fa28c39956 Release 0.3.4 2015-04-04 10:43:25 +13:00
Chris Wong
67daea81d8 Merge 2015-04-04 10:34:31 +13:00
Chris Wong
c75ced0f02 Clean up lifetimes stuff 2015-04-04 10:27:44 +13:00
ArtemGr
3866afbe2a Rust upgrade (seems to need a Clone with a Copy). 2015-04-03 23:41:53 +03:00
Chris Wong
f08963012a Release 0.3.3 2015-04-03 16:30:43 +13:00
Chris Wong
2aa687fc0f Update Rust 2015-03-29 19:37:26 +13:00
Chris Wong
c7ab906ad9 Guard against trailing tokens in Rust exprs
Currently, the following parses:

    $for x in y.iter() #$%!INVALID~SYNTAX!^&* {
    }

This is because the Rust parser only consumes enough to parse a single
expression (in this case `y.iter()`), ignoring all the nonsense after
it.

With this patch, we check that the parser has consumed *all* tokens
before yielding a result, ensuring that invalid syntax (like the snippet
above) is not ignored.
2015-03-27 13:57:58 +13:00
Chris Wong
a8928988d0 Add some missing semicolons 2015-03-27 13:57:58 +13:00
Chris Wong
df0689c7ed Release v0.3.2 2015-03-21 13:40:08 +13:00