Comments (7)
This would be great for porting enlive over to ClojureScript. (@cgrand, do you know if anyone's tried enlive + clojurescript yet?)
from enlive.
Any developments on this?
from enlive.
@robertpfeiffer could you show a more elaborate example of an alternative HTML parser?
from enlive.
@ifesdjeen being implicitly tied to TagSoup is no good.
The real problem is the implicit reference to html-resource. *ml-resource fns do two things: get the resource and parse it. These two should be cleanly "decomplected" and composable: pluggable way to get resources (eg full-fledged http agent) and pluggable parsers.
from enlive.
I see the point, right. I've seen at least 2 more tickets/discussions about pluggable backends and stuff.
I'll try to throw in some prototype, it sounds like something possible.
from enlive.
The hardest part is API design, not implementation. So example code is
enough of a prototype to me. Don't wade time on a working prototype.
Le vendredi 11 janvier 2013, Alex P a Γ©crit :
I see the point, right. I've seen at least 2 more tickets/discussions
about pluggable backends and stuff.
I'll try to throw in some prototype, it sounds like something possible.β
Reply to this email directly or view it on GitHubhttps://github.com//issues/24#issuecomment-12141180.
On Clojure http://clj-me.cgrand.net/
Clojure Programming http://clojurebook.com
Training, Consulting & Contracting http://lambdanext.eu/
from enlive.
Ok, pluggable parsers are on the main branch now. See https://groups.google.com/d/topic/enlive-clj/snlJmmi5M7k/discussion
from enlive.
Related Issues (20)
- Automated CSS selector translation to vector form HOT 5
- [org.jsoup/jsoup "1.8.3"] exists HOT 1
- Make JSoup the default for enlive 1.2 HOT 1
- StackOverflowError when parsing certain html HOT 4
- Composable selector/transform in snippet HOT 1
- Simple variable substitution (with example) in meta tag throwing NullPointerException HOT 2
- Less obscure error messages
- first-child
- End tag for <col> violates the specs
- javax.net.ssl.SSLHandshakeException while trying to reach some resources HOT 1
- attribute matching inside at-form HOT 1
- "safe write" "feature" in IntelliJ prevents auto-reloading of namespace depending on changed HTML
- Removing element cleanly HOT 2
- Is this project dead? HOT 1
- Update jsoup dependency to v1.11.3+
- Setting HTTP headers HOT 1
- Broken wiki link in project description
- HTML resource not found
- Any interest in CSS-style selector syntax option? HOT 1
- [BUG] Some tags are loosing part of their content when selected.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enlive.