Matthew Nicholson
3edc4c3fa0
use generic events struct instead of `StringEvents`
...
This new structure is generic over any type that implents `From`/`Into`
for the type specified.
2019-03-31 02:04:30 -04:00
Bodil Stokke
a39ccf737f
Support boolean attrs, child blocks, and port TodoMVC example.
2019-03-16 21:14:38 +00:00
Bodil Stokke
c892a9f27e
Pre-build static arrays of attrs etc to save on allocations.
2019-03-16 16:24:23 +00:00
Bodil Stokke
813121b3a7
Dodrio support with a bespoke macro.
2019-03-16 03:18:49 +00:00
Bodil Stokke
dbb4ba8738
2018 edition.
2019-03-15 23:37:20 +00:00
lunchhunter
c2584878a5
Fix `data-` prefix duplication
...
The `data-` prefix is being duplicated, such that `data-foo="bar"` is
being rendered as `data-data-foo="bar"`.
This change removes the prefix at the `Element` level, and leaves its
addition at the `Display` level, causing it to be rendered correctly.
2018-12-04 16:23:03 -08:00
Bodil Stokke
8d7eecc21c
Give a sensible error message when a needed annotation is missing.
2018-12-03 16:51:37 +00:00
Bodil Stokke
818c8ebdac
Make it generic on event type, determined by output type.
...
Unfortunately, this means the macro now requires a type annotation when
using event handlers.
Closes #6 , #17 .
2018-12-01 18:33:34 +00:00
Bodil Stokke
1823e5ecb9
Improve misplaced block error message.
2018-11-29 16:35:47 +00:00
Jonathan Kingston
b74e8e5bc1
Handle bool attributes. Fixes #13
2018-11-24 13:21:41 +00:00
David Tolnay
54f35aae28
Remove proc_macro_span feature
2018-11-18 02:45:06 -08:00
David Tolnay
dcda57c8af
Remove proc_macro_diagnostic feature
2018-11-18 02:45:04 -08:00
David Tolnay
78f0e9b1e6
Remove proc_macro_quote feature
2018-11-17 23:38:39 -08:00
Bodil Stokke
5a72616f97
Remove need to enable feature(try_from).
2018-11-17 21:49:04 +00:00
Bodil Stokke
2b95530637
Better event handler conversion.
2018-11-16 00:34:13 +00:00
Bodil Stokke
a9dc58da9c
Event handlers!
2018-11-15 23:25:38 +00:00
Bodil Stokke
cc8e7219a2
Reorganise, docs, HTML escaping.
2018-11-14 18:25:05 +00:00
Bodil Stokke
7d1e95f262
Completely transitioned to LALRPOP and new declare macro.
2018-11-14 16:22:07 +00:00
Bodil Stokke
cb7e148310
A mess of LALRPOP.
2018-11-14 00:30:59 +00:00
Bodil Stokke
2806bde178
Such work.
2018-10-28 00:48:34 +01:00
Bodil Stokke
858b16cf34
Drop the bad Rust 2018 Cargo forces on you. Rewrite to work with actual native proc_macros.
2018-10-27 19:49:52 +01:00
Bodil Stokke
f7ce896ca3
Autobox everything.
2018-10-27 17:28:57 +01:00
Bodil Stokke
dee331c5eb
Cleanup, reorg, data attributes.
2018-10-27 17:00:43 +01:00