-
-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined, Unknown tag. Better output? fail safely ? #50
Comments
Thank you for the feedback, I'll take a look at it! |
Several things:
I'm working on it, it's in progress ;) |
Hi @jdrouet Thanks for creating this library. I see that there's an issue for |
@devnacho The |
The (much slower) node cli has an option to provide a validation method when compiling templates. Adding a validation option for the render subcommand seems like it would be useful for production use where we would want to render the template even if there was an erroneous tag/attribute in the markup. Possible validation options: |
The latest refactoring of mrml has been made with that purpose. That's probably the next big thing I want to tackle. |
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.153 to 1.0.154. - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](serde-rs/serde@v1.0.153...v1.0.154) --- updated-dependencies: - dependency-name: serde dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Hello I found this repo in reddit and have glanced at the source code.
I've tried the wasm example to quickly go thru a few templates.
While trying to render this template https://mjml.io/try-it-live/templates/austin
the output becomes 'undefined' which I know means that it has found a tag that mrml
does not recognize but the error is not very user friendly.
I'm new to mjml and have no idea which tags are valid so I don't know how to begin to debug this. Could there be a way to ignore unknown tags and continue rendering the known tags? maybe by ignoring all the child xml nodes.
More verbose output could also be helpful.
The text was updated successfully, but these errors were encountered: