Skip to content
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

OR operator in enlive #2

Open
jule64 opened this issue May 8, 2017 · 0 comments
Open

OR operator in enlive #2

jule64 opened this issue May 8, 2017 · 0 comments

Comments

@jule64
Copy link

jule64 commented May 8, 2017

Hi, is there a way to do an OR query with enlive? Something like:

(enlive-query-all *my-parsed-html* [.type1 | .type2])

In the example below, I would be looking to get element of type1 and type2 but not type3:

Example html:

<body>
<tr class='type1'>
    ...
</tr>
<tr class='type2'>
    ... 
</tr>
<tr class='type3'>
    ... 
</tr>
</body>

Note I have a way to do this but it's not pretty..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant