Fork me on GitHub
#luminus
<
2016-05-05
>
thug.nasty02:05:36

i created a new clj file in my luminus project, and when I try to load my page it complains that it can’t find the new namespace.

thug.nasty02:05:48

I added (ns …) at the top too

thug.nasty02:05:52

and I verified the spelling.

thug.nasty02:05:33

i think it has something to do with the path

thug.nasty02:05:58

since the ns was ‘aqp.entry.core’, I put it in aqp/entry/core.clj

thug.nasty02:05:20

however, when I moved the core.clj file up to the aqp/ directory (having renamed it) the error went away

eggsyntax02:05:11

The luminus docs say "Luminus comes with the Hiccup dependency.” Is that still true? I notice that the word “hiccup” doesn’t appear anywhere in the generated project.

frank03:05:28

@eggsyntax: if you initiate the new project with the cljs option, it will have the hiccup dependency (I think)

frank03:05:41

but otherwise, no, it doesn't

eggsyntax03:05:30

The docs suggest that hiccup is being used for server-side html templating, so I’m surprised it’s only included in +cljs projects.

frank03:05:42

yeah, it's strange

thug.nasty18:05:56

anyone know of a way to list all values in a map iteratively in a template?

eggsyntax18:05:39

Don't think so, but can you clarify the question a bit?

thug.nasty18:05:06

you know how you can do a {%for item in items %} in a template?

thug.nasty18:05:14

is there an equivalent for maps?

eggsyntax18:05:32

Oh, that kind of template. Sorry, no idea.

eggsyntax18:05:46

Somehow I was imagining you meant a lein template.

thug.nasty18:05:02

ah, yeah, I can see that.

eggsyntax18:05:24

I dunno why, what you actually meant makes more sense in the context of this channel.

frank18:05:05

it doesn't sound like something like that would exist for maps, since the order would be non-deterministic

thug.nasty19:05:39

frank: ah, yeah, that would make sense