-
Notifications
You must be signed in to change notification settings - Fork 29
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
Parsers in browser #6
Comments
👍 |
@GianlucaGuarini , yes, it is already fixed my local copy, but now having problems with compiler logic. <named-child-parent>
<named-child name="tags-child"></named-child>
</named-child-parent>
<named-child>I have a name</named-child> now, the compiler is generating: riot.tag2('named-child-parent', '<named-child name="tags-child"></named-child>', '', '', function(opts) {
});
riot.tag2('named-child', '', '', '', function(opts) {
I have a name // <================ Parse error here when executing riot.tag2
}); I think this is the intention: <named-child-parent>
<named-child name="tags-child"></named-child>
</named-child-parent>
<named-child><p>I have a name</p></named-child> The compiler is generating, I think correctly: riot.tag2('named-child-parent', '<named-child name="tags-child"></named-child>', '', '', function(opts) {
});
riot.tag2('named-child', '<p>I have a name</p>', '', '', function(opts) {
}); In the first form, named-child is a custom tag with no html content inside, only bad javascript. I'm wrong? If so, how to detect the difference. I'm reading the old code right now to understand this. EDIT: This is from specs/node.js test |
@aMarCruz you can indent that tag, I have already updated the analyzer to detect this kind of issue https://github.com/riot/cli/blob/master/test/tags/analyzer/one-line.tag |
You mean indenting btw: call to |
yes
No it's never too late ;) just try to freeze the compiler api in order to make a new riot release |
|
You can either keep |
Well, keep |
@aMarCruz thank you I will try to fix the ie issue in our unit test |
Is it possible with the new compiler to parse the riot tags in runtime directly in the browser?
In this file I see many require calls that are only available in a node environment
The text was updated successfully, but these errors were encountered: