hozumi / hiccup-bridge Goto Github PK
View Code? Open in Web Editor NEWHiccup to html, html to hiccup.
Hiccup to html, html to hiccup.
<div class="foo bar-foo"></div>
is now producing [:div.foo.bar.foo]
instead of [:div.foo.bar-foo]
I try this:
(hicv/html->hiccup "<!DOCTYPE html><html><body>Hello</body></html>")
I get
NullPointerException clojure.core/name (core.clj:1518)
I had expected, of course, that it be OK with that HTML page and return a nice bit of hiccup.
Without the Doctype, it works fine.
Hi Takahiro,
Sorry, I don't know how this works.
I tried running it with an index.html file, in the hiccup-bridge project folder,
lein hicv 2clj index.html
and I just get an 'hicv is not a task' error.
In my profiles.clj, in the :plugins section, there is a [org.clojars.hozumi/hiccup-bridge "1.0.1"]
I tried generating a standalone version of Hiccup-bridge, going to the project/target folder, and then
java -jar hiccup-bridge-1.0.1-standalone.jar hicv 2clj index.html
, and get a file not found error.
I then tried
java -jar hiccup-bridge-1.0.1-standalone.jar index.html
, and it doesn't understand the <!doctype> tag.
If I remove the tag, then it's unable to resolve the symbol.
Clueless, here. How should this be run, standalone?
Hello, just installed as leinengen 2 plugin via file:
~/.lein/profiles.clj
And getting this error:
$ lein hicv 2clj 1.html
Could not locate to_hiccup/core__init.class or to_hiccup/core.clj on classpath:
elliottw% mkdir hicv
elliottw% curl https://github.com/ > hicv/github.html
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 22830 100 22830 0 0 33825 0 --:--:-- --:--:-- --:--:-- 83626
elliottw% ls -l hicv
total 24
-rw-r--r-- 1 elliottw elliottw 22830 Sep 14 19:35 github.html
elliottw% lein hicv 2clj
Couldn't find project.clj, which is needed for hicv
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.