├── examples
└── html-to-string-macro
│ ├── .gitignore
│ ├── tests
│ ├── ui
│ │ ├── doctype.rs
│ │ ├── no_open_tag.rs
│ │ ├── not_closed_tag.rs
│ │ ├── not_closed_tag.stderr
│ │ ├── node_block_with_dot.rs
│ │ ├── no_open_tag.stderr
│ │ ├── node_block_with_dot.stderr
│ │ ├── doctype.stderr
│ │ ├── multiple_errors.rs
│ │ ├── first.stderr
│ │ └── multiple_errors.stderr
│ ├── compiletests.rs
│ └── tests.rs
│ ├── README.md
│ ├── build.rs
│ ├── Cargo.toml
│ └── src
│ └── lib.rs
├── .gitignore
├── doc_imgs
├── .DS_Store
├── completion.png
└── output.svg
├── rustfmt.toml
├── rstml
├── src
│ ├── error.rs
│ ├── node
│ │ ├── node_value.rs
│ │ ├── parser_ext.rs
│ │ ├── raw_text.rs
│ │ ├── atoms.rs
│ │ ├── mod.rs
│ │ ├── node_name.rs
│ │ └── attribute.rs
│ ├── parser
│ │ ├── mod.rs
│ │ └── recoverable.rs
│ ├── lib.rs
│ ├── config.rs
│ └── rawtext_stable_hack.rs
├── build.rs
├── Cargo.toml
└── tests
│ ├── custom_node.rs
│ └── recoverable_parser.rs
├── .tarpaulin.toml
├── generate_changelog.sh
├── .github
└── workflows
│ ├── bench.yml
│ ├── coverage.yml
│ └── ci.yml
├── rstml-control-flow
├── Cargo.toml
├── README.md
└── src
│ ├── lib.rs
│ └── extendable.rs
├── LICENSE
├── .githooks
└── pre-push
├── Cargo.toml
├── cliff.toml
├── comparsion-with-syn-rsx.md
├── README.md
├── CHANGELOG.old.md
└── CHANGELOG.md
/examples/html-to-string-macro/.gitignore:
--------------------------------------------------------------------------------
1 | Cargo.lock
2 | target
3 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 | /Cargo.lock
3 | .DS_Store
4 | .idea
5 | tarpaulin-report.html
--------------------------------------------------------------------------------
/doc_imgs/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rs-tml/rstml/HEAD/doc_imgs/.DS_Store
--------------------------------------------------------------------------------
/doc_imgs/completion.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rs-tml/rstml/HEAD/doc_imgs/completion.png
--------------------------------------------------------------------------------
/rustfmt.toml:
--------------------------------------------------------------------------------
1 | wrap_comments = true
2 | format_code_in_doc_comments = true
3 | imports_granularity = "Crate"
4 | group_imports = "StdExternalCrate"
--------------------------------------------------------------------------------
/rstml/src/error.rs:
--------------------------------------------------------------------------------
1 | #[derive(Debug, thiserror::Error)]
2 | pub enum Error {
3 | #[error("TryFrom failed: {0}")]
4 | TryFrom(String),
5 | }
6 |
--------------------------------------------------------------------------------
/examples/html-to-string-macro/tests/ui/doctype.rs:
--------------------------------------------------------------------------------
1 | use rstml_to_string_macro::html;
2 | fn main () {
3 | html! {
4 |
5 | };
6 | }
--------------------------------------------------------------------------------
/examples/html-to-string-macro/tests/ui/no_open_tag.rs:
--------------------------------------------------------------------------------
1 | use rstml_to_string_macro::html;
2 | fn main () {
3 | html! {
4 |
5 |