Commit Graph

72 Commits

Author SHA1 Message Date
Ashley Williams a2097243ed fix(deps): update lalrpop to 0.19.9 2023-03-29 12:00:02 -05:00
Adrian Heine 46a2794a87 Rename more typed-html references
This also fixes the documentation links from axohtml_macros to axohtml.
2023-03-14 13:36:23 +01:00
Ashley Williams 67e74aabcb 0.4.1 2023-01-24 18:22:10 -06:00
Sara Vieira 54b70652bb v0.4.0 2023-01-24 15:22:58 -06:00
Sara Vieira ecb0029c20 0.3.0 2023-01-02 14:36:14 -06:00
Sara Vieira 3ea02872c7 Merge branch 'main' of github.com:axodotdev/axohtml into aria-sort 2022-12-23 16:01:35 +00:00
ashley williams f392e6daac
Merge pull request #10 from axodotdev/fix-data
Fix data attributes && add ability to have script in HTML
2022-12-23 09:31:17 -06:00
Sara Vieira 85481c23c1 type aria sort 2022-12-22 17:38:57 +00:00
Sara Vieira a2fd84ab5e type aria orientation 2022-12-22 17:35:41 +00:00
Sara Vieira da3e87a38e move implementatipn 2022-12-22 15:02:41 +00:00
Sara Vieira ae1462cdb8 fix data attrs, support scfript 2022-12-22 14:28:12 +00:00
Ashley Williams 5f88f45c30 0.2.0 2022-12-19 15:37:02 -06:00
Sara Vieira 3e2d9282f6 add support for aria 2022-12-19 19:27:48 +00:00
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