Fork me on GitHub
#boot
<
2015-09-07
>
esp102:09:52

sorry was afk, labor day holiday and all. just wanted to recap on the fileset/TmpFile metadata stuff to make sure i understand -

esp102:09:42

it looks like there are two different ways of storing metadata, one for filesets and one for TmpFiles

esp102:09:20

for filesets, we use normal clojure metadata (a la ‘meta’) on the fileset

micha02:09:27

well filesets are clojure records

micha02:09:39

so you can attach metadata to them, as you can to any clojure collection

micha02:09:18

for TmpFiles boot has its own convention which you can use, which is to simply add keys to the TmpFile record

micha02:09:30

since clojure records are also persistent maps you can do this

micha02:09:49

that makes it easy to sort and filter by those keys

esp102:09:19

i see. just curious - why the different conventions for filesets vs TmpFiles?

micha02:09:32

there is no convention for filesets

micha02:09:43

you can add keys to that, too, if you want

micha02:09:00

if you overwrite a key that alraedy is in use things will get weird

esp102:09:31

ok, got it

esp102:09:22

btw @juhoteperi the current link to perun from the boot Task Writer’s Guide points to a version that doesn’t use perun’s get-meta fn, which confused me for a while

micha02:09:29

TmpFile objects also of course support regular metadata via (with-meta ...) too

esp102:09:51

i c. thx!

onetom11:09:28

where is a good place to ask about cljsjs?

onetom11:09:51

i was wondering what's the recommended way to consume assets (like CSS) from cljsjs packages?

martinklepsch11:09:23

@onetom there is no recommended say but the wiki lists a few approaches

onetom11:09:20

aaaand where is the wiki?

onetom11:09:46

I tried to navigate to it from http://cljsjs.github.io and boot-cljsjs but couldnt find it...

martinklepsch11:09:59

The package repo is the central point for documentation

micha15:09:55

@onetom: if you have suggestions for how we should do it in hoplon i'm all ears