Commit Graph

59 Commits

Author SHA1 Message Date
Ashley Williams 37c410a53c fork: remove dodrio and stdweb stuff for now 2022-12-15 17:27:58 -06:00
Ashley Williams d4bec7a233 fork: update authors, editions 2022-12-15 17:19:41 -06:00
Ashley Williams ddc8bc12d0 fork: rename and reversion 2022-12-15 16:35:42 -06:00
Bodil Stokke e18d328951 Bump all the deps and appease Clippy, 2022 edition. 2022-01-27 19:38:31 +00:00
Samuel El-Borai 95764776f2 Remove use of deprecated proc_macro_hack
This fixes the error:
"unresolved macro `$crate::proc_macro_call_dodrio!`" from the file
examples/dodrio/counter/src/lib.rs.

Quoting proc_macro_hack documentation:
> Note: As of Rust 1.45 this crate is superseded by native support for
> #[proc_macro] in expression position. Only consider using this crate
> if you care about supporting compilers between 1.31 and 1.45.

Source: https://docs.rs/proc-macro-hack/latest/proc_macro_hack/index.html
2022-01-27 18:16:32 +00:00
Samuel El-Borai 9d5f32ba9b cargo clippy --fix -- --allow unused_braces
- The '--allow unused_braces' is to avoid removing the extra curly
  braces used within html! macro calls.
2022-01-27 18:16:32 +00:00
Bodil Stokke 810fc82069 Bump what can be bumped. 2020-03-06 18:07:02 +00:00
Bodil Stokke 5f652f1840 Release 0.2.2 2020-02-07 17:42:35 +00:00
Bodil Stokke b9fc11b18e Clippy appeasement. 2019-10-01 15:05:41 +01:00
Bodil Stokke 652bc9f1c3 Bump some deps, lock another. 2019-10-01 14:44:21 +01:00
dependabot-preview[bot] 1fc4f0bc64 Update ansi_term requirement from 0.11.0 to 0.12.0
Updates the requirements on [ansi_term](https://github.com/ogham/rust-ansi-term) to permit the latest version.
- [Release notes](https://github.com/ogham/rust-ansi-term/releases)
- [Commits](https://github.com/ogham/rust-ansi-term/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-26 15:30:31 +01:00
Bodil Stokke f70c00b460 Release 0.2.1 2019-06-28 14:51:32 +01:00
Bodil Stokke 15c6ca1143 Bump lalrpop-util. 2019-05-28 17:07:56 +01:00
Bodil Stokke e3e5cd3f09 Bump version_check to 0.9.1. 2019-05-28 16:05:56 +01:00
Jonathan Kingston 8c340453eb Add Send to all output types 2019-05-28 16:30:53 +02:00
Jonathan Kingston 1588f30353 Relax attribute escaping. Fixes #26 2019-05-28 16:06:13 +02:00
Jonathan Kingston 105156542e Adding support for the ARIA role attribute 2019-05-28 16:03:12 +02:00
dependabot[bot] 93ae347603
Update lalrpop requirement from 0.16.1 to 0.17.0
Updates the requirements on [lalrpop](https://github.com/lalrpop/lalrpop) to permit the latest version.
- [Release notes](https://github.com/lalrpop/lalrpop/releases)
- [Changelog](https://github.com/lalrpop/lalrpop/blob/0.17.0/RELEASES.md)
- [Commits](https://github.com/lalrpop/lalrpop/compare/0.16.1...0.17.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-08 06:18:39 +00:00
Bodil Stokke 5334d783f2 Use TryFrom rather than panicking From implementations to do attribute conversion.
Now that it's landed in stable and all.
2019-04-12 20:00:33 +01:00
Bodil Stokke ccb00646ac Don't render empty attributes when stringifying. 2019-04-08 16:44:34 +01: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 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 d4c5121172 Release 0.1.1 2018-11-29 17:52:08 +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
Jonathan Kingston 7cb9441820 Support allow list of self-closing tags. Fixes #15 2018-11-24 16:17:03 +00:00
Jonathan Kingston b74e8e5bc1 Handle bool attributes. Fixes #13 2018-11-24 13:21:41 +00:00
David Tolnay 0ec3be89cc
Support nested invocations of html macro 2018-11-18 02:45:07 -08:00
David Tolnay 893566118d
Remove proc_macro_hygiene feature 2018-11-18 02:45:06 -08: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 43550de7b8 Prepare for initial release. 2018-11-17 22:37:19 +00:00
Bodil Stokke bc94387213 Toplevel docs. 2018-11-17 21:49:45 +00:00
Bodil Stokke 5a72616f97 Remove need to enable feature(try_from). 2018-11-17 21:49:04 +00:00
Bodil Stokke 276ba31432 Documentation++. 2018-11-17 20:38:07 +00:00
Bodil Stokke 001a7ba016 Parameterise nodes etc on output type, so we can type event handlers based on it.
With this, Node<String> only accepts event handlers implemented
for String, etc. No danger of trying to stringify functions and vice versa.
2018-11-16 23:33:11 +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