Commit graph

255 commits

Author SHA1 Message Date
Chris Wong
f113623657 Merge pull request from Nemo157/change-symbology
Change symbology
2016-02-08 23:38:23 +11:00
Wim Looman
1b307449f3 Add @ prefix on else back in 2016-02-07 11:02:33 +01:00
Wim Looman
da86d54b05 Remove div shorthand 2016-02-07 10:59:20 +01:00
Wim Looman
393873904e Fix up comments and error messages 2016-02-03 12:01:32 +01:00
Wim Looman
bd0b135a0d Replace # -> @ and remove from else 2016-02-03 12:01:31 +01:00
Wim Looman
359079ca6c Use join 2016-02-02 16:20:11 +01:00
Wim Looman
b1680636cf Add a shorthand syntax to define element classes 2016-02-02 16:20:11 +01:00
Wim Looman
6c8fbb5bad Change splice operator and add in render by-move 2016-02-02 15:56:59 +01:00
Chris Wong
0440f5c74f Merge pull request from Nemo157/path-in-splice
Allow path lookups in un-delimited splices
2016-02-02 21:30:48 +11:00
Wim Looman
6b0b7a00d7 Allow path lookups in un-delimited splices 2016-02-01 18:18:10 +01:00
Wim Looman
6858108f9c Allow tuple attribute lookups 2016-02-01 18:03:50 +01:00
Chris Wong
8d0ad20f74 Update Rust 2016-01-01 11:43:59 +13:00
Chris Wong
3791f801c9 Update Rust 2015-12-20 22:18:44 +11:00
Chris Wong
7cb4d61d5b Update Rust 2015-11-28 21:15:13 +11:00
Chris Wong
54889b2004 Update Rust 2015-11-20 10:56:29 +13:00
Chris Wong
05b5d099fb Update Rust 2015-11-08 18:59:11 +13:00
Chris Wong
34f14dd41d Don't choke on SubstNt tokens
Closes 
2015-11-05 21:46:43 +13:00
Chris Wong
2e0aa3e433 Replace $$ syntax with a general trait thing 2015-10-06 19:25:29 +13:00
Chris Wong
f82c74a699 Refactor 2015-09-28 21:40:37 +13:00
Chris Wong
aa5c8862bc Update Rust 2015-09-28 20:16:23 +13:00
Chris Wong
cf0cf095c2 Revert "Add #call_box instruction"
This reverts commit 0311bab45b.
2015-09-26 13:56:52 +12:00
Chris Wong
7fde2aafb1 Add #[allow(unused_imports)] to generated code 2015-09-25 15:03:00 +12:00
Chris Wong
0311bab45b Add #call_box instruction 2015-09-24 11:50:33 +12:00
Chris Wong
7d124e616e Add #call instruction 2015-09-23 14:29:45 +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
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
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
6d59013f1b Update Rust 2015-07-31 17:33:50 +12:00
Chris Wong
46fab1372b Allow nested macro invocations
Closes 
2015-07-03 10:59:34 +12:00
Chris Wong
d6677b3319 Borrow spliced values instead of moving them
Closes 
2015-04-30 16:32:15 +12:00
Chris Wong
4653b2e2d8 Add html_debug! macro; remove print-expansion feature 2015-04-13 20:41:12 +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
67daea81d8 Merge 2015-04-04 10:34:31 +13:00