This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-09-20
Channels
@mynomoto: micha: we r not using multiple page builds because it's O(n) slow, but instead copy the same compilation result under different subdirectories
I believe for multiple pages Closure modules should be used instead
Doesn't make sense to serve same cljs.core and library code again for each page
@martinklepsch: What if you add another newline?
Github works the same way? You need two line-breaks to start a new paragraphg
http://spec.commonmark.org/0.22/#example-182 working as specified?
It’s not about whether its part of the blockquote or not (it should be)
What's the problem then?
oh author is outside of cite
the issue is that “author is not inside the <cite>
tag
A moment, I'll check if the problem is in pegdown output or endophile conversion
[#<TextNode TextNode [2-17] 'blockquotetext '> #<InlineHtmlNode InlineHtmlNode [17-23] '<cite>'> #<TextNode TextNode [23-29] 'author'> #<InlineHtmlNode InlineHtmlNode [29-36] '</cite>'>]
Pegdown output looks correct
InlineHtmlNodes just arent't converted correctly by endophile
Ugh, it looks quite hard. We should find all inline html nodes and then try to find corresponding end nodes which might not exist and then wrap stuff between them inside the htmle lement
Or perhaps pegdown should output it as HtmlBlockNode
how do you get to that pegdown ast output? I couldn’t figure out how to do that yesterday
by calling only mp
@juhoteperi: and then? this only returns something like #<RootNode RootNode [0-196]>
for me
.getChildren
ahh! great, thanks.
clj
(.getChildren (first (.getChildren (first (.getChildren (mp "A paragraph with <a href=\"example.org\">inline html</a>"))))))
[#<TextNode TextNode [0-17] 'A paragraph with '> #<InlineHtmlNode InlineHtmlNode [17-39] '<a href="example.org">'> #<TextNode TextNode [39-50] 'inline html'> #<InlineHtmlNode InlineHtmlNode [50-54] '</a>'>]
I'm sure that should at least work
@juhoteperi: wouldn’t it be easier for endophile to just take pegown’s html and convert it to hiccup instead of going ast>html?
Nut sure, but we would have lot less control and it would be slower
@juhoteperi: in pegdown tests there is this nice tree visualization of the ast but didn’t yet bother checking how they get that
@martinklepsch: When running the tests?
@juhoteperi: yes, but also the .ast
files that are used to define the tests
Oh right
@martinklepsch: https://github.com/theJohnnyBrown/endophile/compare/master...Deraen:fix-inline-html?expand=1
It works but there must be a simpler way
@micha: your boot maintenance day is over but maybe merging one of the bootlaces PRs would we good anyways? https://github.com/adzerk-oss/bootlaces/pull/7
@juhoteperi: maybe for the case of perun it’d make sense to just use pegdown’s html transform?
Hmh that makes sense
@juhoteperi: https://github.com/hashobject/perun/pull/54 — just copied the extension handling from endophile
Yeah that's probably good until we can get endophile updated
https://github.com/hashobject/perun/pull/47 also fixes this
@martinklepsch: Though that extensions map is missing new extensions
@martinklepsch: Copy new extensions from here: https://github.com/theJohnnyBrown/endophile/pull/10/files
@juhoteperi: I’m thinking for perun it would make sense not to use endophile in general no?
Perhaps
Not sure yet
endophile makes sense when you want hiccup or data.xml like stuff but as long as you only want html strings I don’t see a reason to use it
I was thinking of walking the enlive/hiccup data and hyphenating that
But perhaps I can walk through Pegdown AST
Could be easier even
@juhoteperi: using the plain string as input wouldn’t work?
string with html elements? no
not sure about hyphenating the markdown text
Would probably break e.g. html tags
I should also look into Pegdown plugins
Should compile
work with boot?
*compile-path*
seems to be set to "classes"
@juhoteperi: the aot task uses it
it creates tmpdir and sets compile-path to it
but it doesn't work in repl
(compile 'something)
repl task should probably do that
@juhoteperi: is there a way to configure vim-cider to not use prefix forms on clean-ns
?
@mynomoto: let g:refactor_nrepl_options = "{:prefix-rewriting false}"
I think
@juhoteperi: thanks!
@juhoteperi: is a PR to add the new additions to the readme welcome or you want to change some keybinding before making that public?
Hmh yeah I think clean ns and find symbol bindings should be changed
or default bindings removed
how does :scope work in boot deps?
@flyboarder: same as in leiningen
@flyboarder: what specifically are you wondering about?
Hi @martinklepsch, I am trying to create a cljsjs package following the instructions in https://github.com/cljsjs/packages/wiki/Creating-Packages . At point 7, I want to require my .jar in my ClojureScript project in order to check that everything is going well. I tried with :resource-paths in the project.clj without success.
@davy: you need to add the coordinates that are in the Readme.md
to the list of :dependencies
@martinklepsch: yeah i thought so but I could seem to get google to find the docs for that 😛, kinda went straight to boot and skipped lein XD
@martinklepsch: thanks, I will give it a try!
@flyboarder: the corresponding docs for maven is here https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope
:scope
isn't exactly the same in boot because some things in there are for specific Maven tasks etc
basically you use :scope
to control how transitive dependencies will be resolved when someone uses a package you make
ah I see so it's not directly related to either prod/dev like dependency management apps
so if you are going to make a library that you package as a jar and distribute via clojars or maven central, you will need a pom.xml file in there
right so boot doesnt use it at all for actual task running
the pom.xml file is how the maven machinery knows how to download the dependencies of dependencies basically
so annotations in the pom.xml can tell clients that some of the dependencies were only needed at build time
but some of those dependencies might not be needed when someone is just using your library
right I see
do the test scope items get put into the usual build-jar?
it's the pom.xml that you stick in the jar to tell clients that your jar depends on other jars
so those are only stuck together in the uberjar
which makes sense
@martinklepsch: works like a charm!