This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-16
Channels
- # beginners (7)
- # boot (63)
- # capetown (1)
- # cider (20)
- # clara (15)
- # cljs-dev (5)
- # clojure (195)
- # clojure-austria (2)
- # clojure-dev (46)
- # clojure-dusseldorf (9)
- # clojure-germany (6)
- # clojure-greece (36)
- # clojure-italy (5)
- # clojure-nl (4)
- # clojure-russia (173)
- # clojure-sg (1)
- # clojure-spec (93)
- # clojure-uk (65)
- # clojure-ukraine (2)
- # clojured (9)
- # clojureremote (1)
- # clojurescript (52)
- # core-async (14)
- # core-logic (5)
- # cursive (21)
- # data-science (8)
- # datomic (60)
- # emacs (83)
- # jobs (9)
- # jobs-discuss (7)
- # juxt (6)
- # klipse (2)
- # leiningen (1)
- # lumo (24)
- # mount (4)
- # numerical-computing (1)
- # off-topic (18)
- # om (37)
- # om-next (5)
- # onyx (13)
- # pedestal (1)
- # perun (44)
- # proton (2)
- # rdf (3)
- # re-frame (24)
- # reagent (4)
- # remote-jobs (3)
- # spacemacs (3)
- # testing (6)
- # vim (10)
- # yada (2)
Hey little heads up on the docs, the builtins guide mentions static
which doesn’t exist
I’m wondering what I should use for an about page. Just collection
that doesnt use any entries?
@sooheon static
should exist if you use latest perun snapshot version, which is perun 0.4.2-SNAPSHOT
. Which version do you use now?
yeah, static
is a new one
I think it has few breaking changes. what is your slug function?
(defn slug-fn [filename]
"Parses `slug` portion out of the filename in the format: slug-title.ext"
(->> (string/split filename #"[-\.]")
drop-last
(string/join "-")
string/lower-case))
try changing signature to slug-fn [_ filename]
and using filename like this (:filename m)
no problems. if you have more question, post them here
@podviaznikov Hey do you mind taking a look at https://github.com/sooheon/sooheon.com/tree/update-perun (run locally with boot dev), and comparing with the master branch? The collection and render renderer fns seem to work differently, but I cant figure out how.
taking a look now
Am I correct that there was a change from having the result of markdown be in :content key to it just outputting .html files in the public directory?
But now it looks like all of my markdown files, even marked :draft true will be rendered
yeah, that is a big one. You are correct
Ah my bad, I was calling draft
before markdown
, but markdown
includes the yaml reader
How should I rewrite draft
if I want it to exclude not based on yaml data but based on say path
?
yeah, was just going to say that
I think every task takes filterer
yeah, I like it too. I usually also add target
task at the end and see what files got rendered
helps me with debugging
this is more of a boot question, but there’s no way to change running tasks, right? say I change the filterer of a task, and I have boot dev
running, I dont think that takes effect unless I restart the task
I think if you can start repl and load boot tasks from repl then you can reload them
I saw last week some post how to do that in boot
but never tried myself
let me try to find that link
here it is. Didn’t try it myself
That sounds awesome. This is what I thought all those boot-reload
dependencies should have done :)
So podviaznikov’s method works, except that for our use case boot-http’s serve
task is not suited for this, because it doesnt stop the server unless the repl is left. So you should separate the task further leaving out serve
@sooheon I ran into the same problem. If you'd like, you can build and run this branch of boot-http, which fixes that bug. https://github.com/pandeiro/boot-http/pull/59
Ah yeah I saw your PR in the github thread as well. Thanks! It seems like some awesome sleuthing
Also, reading back a bit - if your concern about rendering markdown files with draft: true
is about the performance - you will only pay that cost on the first run of your watch
loop, assuming the original file doesn't change. And (comp (markdown) (draft))
will result in a fileset that doesn't have those rendered files