-
-
Notifications
You must be signed in to change notification settings - Fork 22
V0.3.0 #16
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and very simple 🌮
index.js
Outdated
var directives = options.directives || defaultDirectives; | ||
|
||
for (var i = 0; i < directives.length; i++) { | ||
if (name.toLowerCase() === directives[i].name) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it will be better?
var directive = directives[i];
results.push(directive.start + data + directive.end);
expect(parser('<!doctype html>')).to.eql(['<!doctype html>']); | ||
}); | ||
|
||
it('should be parse directive', function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO, need some test case when <?php ...>
nested into any html tag (for example, <div>
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very thanks, i find bug, and fixed him. )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<?php wp_nav_menu(array('theme_location' => 'primary', 'menu_class' => 'header-nav-bar')); ?>
is not working correctly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@IgorMotorny Hi, I need more information. Create a separate Issue and describe the problem case. Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool 👏
@posthtml/collaborators LGTM ? |
No description provided.