Commit Graph

86 Commits

Author SHA1 Message Date
Matthew Nicholson d4aee284e5 add iter_mut method to events struct 2019-04-01 00:46:46 -04:00
Matthew Nicholson b1d7f80dad remove now unused `IntoEventHandler` trait 2019-04-01 00:46:46 -04:00
Matthew Nicholson 44436da495 use the standard `From` trait instead of `IntoEventHandler` 2019-04-01 00:46:46 -04:00
Matthew Nicholson 559359b2ff add an iterator over all events
This iterator returns tuples conntaining the event name and whatever the
value is.
2019-04-01 00:46:46 -04:00
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 d63c2ef07b Release 0.2.0 2019-03-16 21:53:23 +00:00
Bodil Stokke b1cd52a419
Update CHANGELOG.md 2019-03-16 21:50:58 +00:00
Bodil Stokke bf3f5a4e2a Add missing attributes to video element.
Closes #32.
2019-03-16 21:39:45 +00:00
Bodil Stokke 359a7a66ed
Merge pull request #38 from bodil/dodrio
Dodrio support with a bespoke macro.
2019-03-16 21:32:20 +00:00
Bodil Stokke a39ccf737f Support boolean attrs, child blocks, and port TodoMVC example. 2019-03-16 21:14:38 +00:00
Bodil Stokke f628e63e63 Revert accidental de-Booling and add missing <input> attrs. 2019-03-16 20:59:14 +00:00
Bodil Stokke e2f6fd0c08 Add in some missing types, conversions and utility methods. 2019-03-16 20:58:51 +00:00
Bodil Stokke ece0b39a60 Build with all features enabled on CI. 2019-03-16 16:32:59 +00:00
Bodil Stokke 1102415693 Build with all features enabled on CI. 2019-03-16 16:32:08 +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
Bodil Stokke 10ad3b2abc Bump some deps. 2019-03-15 14:05:05 +00:00
Bodil Stokke feb20ad18d
Merge pull request #36 from bodil/dependabot/cargo/strum-0.14.0
Update strum requirement from 0.13.0 to 0.14.0
2019-03-05 13:04:03 +00:00
dependabot[bot] bd4d4dec81
Update strum requirement from 0.13.0 to 0.14.0
Updates the requirements on [strum](https://github.com/Peternator7/strum) to permit the latest version.
- [Release notes](https://github.com/Peternator7/strum/releases)
- [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Peternator7/strum/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-05 05:38:52 +00:00
Bodil Stokke d2583f6d75 CircleCI config. 2019-02-22 18:09:10 +00:00
Bodil Stokke eb1174ae97 Stop rustc complaining about non-camel case types. 2019-01-17 12:56:41 +00:00
Bodil Stokke 77888b20e5 Alias the Uri type to String.
Closes #30.
Closes #31.
2019-01-17 12:56:22 +00:00
Bodil Stokke eff3f2289a Bump strum. 2019-01-04 22:39:33 +00:00
Bodil Stokke 4f949f1cb7
Merge pull request #28 from longwusha/master
fix typo error in CHANGELOG
2018-12-20 18:04:28 +00:00
lws 9511862d1a
fix typo error in CHANGELOG
The month in the release date of version 0.1.1 is wrong. According to the code commit record, the correct month should be November.
2018-12-20 22:47:32 +08:00
Bodil Stokke 5acffb917f
Merge pull request #23 from LunchHunter/un-double-data
Fix `data-` prefix duplication
2018-12-06 17:00:13 +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 4c49aca99f
Merge pull request #22 from bodil/generic-events
Generic event types.
2018-12-03 17:03:38 +00: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 67c5771b4e
Tell Travis the stdweb example moved. 2018-12-01 19:01:00 +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 b71acfb065
Merge pull request #19 from derekdreery/patch-1
Change `nav` to contain flow content
2018-12-01 18:28:08 +00:00
Bodil Stokke 77a3c6d840 Back to dev mode. 2018-11-30 13:44:37 +00:00
Richard Dodd (dodj) d87c9f81b1
Change `nav` to contain flow content -
I'm pretty sure you should be able to do

```html
<nav>
  <ol>
    <li>Test</li>
  </ol>
</nav>
```
2018-11-29 20:10:40 +00:00
Bodil Stokke d4c5121172 Release 0.1.1 2018-11-29 17:52:08 +00:00
Bodil Stokke c85045d291 Update changelog for release. 2018-11-29 17:48:07 +00:00
Bodil Stokke 270e3b52e1 Implement IntoIterator for all marker traits.
Further closes #12.
2018-11-29 16:37:07 +00:00
Bodil Stokke 1823e5ecb9 Improve misplaced block error message. 2018-11-29 16:35:47 +00:00
Bodil Stokke e80c8e6d88
Merge pull request #16 from jonathanKingston/self-closing-tags
Support allow list of self-closing tags. Fixes #15
2018-11-29 15:50:34 +00:00
Bodil Stokke 670fb934fb IntoIterator implementation for elements and boxed elements.
Closes #12.
2018-11-29 15:28:09 +00:00
Bodil Stokke b3ecb54ed8
Merge pull request #14 from jonathanKingston/handle-bool
Handle bool attributes. Fixes #13
2018-11-29 14:28:11 +00:00
Jonathan Kingston 7cb9441820 Support allow list of self-closing tags. Fixes #15 2018-11-24 16:17:03 +00:00
Jonathan Kingston 460681b5ec Formatting fixes 2018-11-24 16:13:58 +00:00
Jonathan Kingston b74e8e5bc1 Handle bool attributes. Fixes #13 2018-11-24 13:21:41 +00:00
Bodil Stokke 28bc92ebc7
Merge pull request #9 from egeriis/rep-expand-wasm-example
Add instructions and web server to wasm example
2018-11-20 14:28:17 +00:00
Bodil Stokke 9ec74ad153
Merge pull request #4 from dtolnay/ui
Update ui test goldens
2018-11-20 14:23:37 +00:00
Ronni Egeriis Persson 13a9828776 Add instructions and web server to wasm example 2018-11-19 23:28:05 +01:00
David Tolnay 1f9fcf408b
Update ui test goldens
The PR that added ui testing and the PR that changed the compiler output
were merged in parallel. This resolves the conflict.
2018-11-19 09:27:56 -08:00
Bodil Stokke 445a3af904
Merge pull request #3 from dtolnay/ui
Add ui tests
2018-11-19 16:48:31 +00:00