hey @all. I'm a relatively new clojurian but really enjoying the language so far. Looking through the issues now but I was wondering if there was any task for perun that was relatively newbie friendly. I'm not a novice programmer, just new to Clojure.
ok, now I feel dumb, I just tried to spin up a Simplest Thing Possible (tm) and got clojure.lang.ExceptionInfo: Unable to resolve symbol: perun in this context
hey @bwstearns let me think
You didn’t try using perun yourself yet, right?
that's what I am trying to do, just following the user tutorial so I understand how to use it
It seems like I'm missing some installation step since it's a boot error
I get it at the boot --help
step
;; build.boot
(set-env!
:source-paths #{"src" "content"}
:dependencies [[perun "0.3.0" :scope "test"]])
(require '[io.perun :refer :all])
;; boot.properties
#<http://boot-clj.com>
#Mon Jan 18 23:19:36 CET 2016
BOOT_CLOJURE_NAME=org.clojure/clojure
BOOT_CLOJURE_VERSION=1.7.0
BOOT_VERSION=2.5.5
BOOT_EMIT_TARGET=no
I think you need single quote before [[
Like here https://github.com/hashobject/perun/blob/master/examples/blog/build.boot#L4
oh wait... I seem to be an idiot, you need to run boot related commands from inside /content?
sorry, not quite sure what you mean by from inside /content
I was running it from /my-app
mkdir my-website # creates the directory
cd my-website # moves you into the directory
so now you're in /my-website
"Create the directory content and place a file index.markdown inside it, containing the following"
and now I guess you're in the directory /my-website/content/
not /my-website
this appears to make a difference because I get the error in the my-website
dir but not the my-website/content
dir
Looking into Getting started guide
no you actually need to run boot command from my-website
not my-website/content
did you try adding missing '
For some reason GitHub rendered example wrong. I see ’
in the source but it’s not displayed
ohhh ok
Sorry for the misunderstanding (also for the wiki edit collision just there)
no worries. I’m actually surprised that single quote is not rendered
let me know if you hit more problems
Thanks, will do.
And it works, awesome.
great, good that it works. I don’t have idea for beginner friendly tasks/bugs yet but I will think about it more
@bwstearns: Sorry about that quoting issue, githubs code block renderer just drops them for some reason :(
@martinklepsch: no worries. That's the beauty of open source. To paraphrase, many feet make all mines trigger? Did anyone discover what was up with the missing quote?
@bwstearns: you mean the reason?
@bwstearns: I have no clue, to make it worse in some places the quote is displayed perfectly in others in the same code block it's not there at all
That is bizarre.
OK. Figured out the ' thing
kind of
putting '[[ makes it disappear, putting it in front of '[ [ does not
Even though it's in a codeblock is it still doing something expecting a link or something?
ohhh!
you're amazing if that's true!
👏
Woohoo!
Adding "arbitrary formatting conundra" to linkedin skills.
@bwstearns: thanks for fixing that!
man I've spent what felt like hours trying to figure this out 😄
@martinklepsch: no problem. It looks less pretty now but it executes. I'll find out how to bug someone at github about it because the formatting really shouldn't be eating that quote mark. I looked through their markdown specification and it really shouldn't be happening.
@martinklepsch: mind if I CC you on the support email?
no, sure
cool, thanks for puttin in the effort @bwstearns
@martinklepsch: no worries. I'll try to make sure that I document/submit fixes for any toe stubbing while using the project 😄
wow, good job finding workaround for the quote issue
@bwstearns: as an idea for a new task todo I would suggest looking into http://www.metalsmith.io/. They have list of plugins. Maybe you would find some plugin useful and would like to implement similar one in the perun.
E.x. https://github.com/doodzik/metalsmith-google-analytics this one looks like a small one
@podviaznikov: nice. Looking at it now.
it’s is just for inspiration. Maybe @martinklepsch would have some suggestions/ideas too
I wanted to write a task that renders plain edn data in some way. I.e. I have a list of books I've read in an edn file and I want a books.html
file made from it
it's pretty straightforward I think
but to properly integrate you'll need to accustom yourself with how perun works
Yeah, that is a good one. You can also put this lis right now in the perun.base.edn
and it would be available in all pages. But I agree that having it not in the global meta is better way
Interesting.