Fork me on GitHub
#luminus
<
2017-02-03
>
curlyfry06:02:19

Hi, I have a question about the default template in Luminus. In many templates I've seen, bootstrap is optional if included at all. How come it's in the default template for Luminus?

curlyfry06:02:51

I'm also wondering why selmer is included when I use +reagent or +re-frame. Isn't that that kind of redundant?

curlyfry06:02:05

Thanks for Luminus btw :)

roelof08:02:00

I wonder if somehow I can access the current page which can be found here :

localhost/?page=1 

roelof08:02:36

or must I send the current page just like I did with some json data :

"home.html" {:paintings (-> (client/get url options)
                                  (api/get-objectNumbers)
                                  (api/fetch-paintings-and-images-front-page))})))

yogthos13:02:05

@curlyfry I ended up going with bootstrap as it is fairly popular, and it's also not a lot of work to replace if you didn't want to use it

yogthos13:02:46

I think that using Hiccup on the server would make sense for reagent/re-frame options, but I just haven't got around to setting that up

yogthos13:02:34

it would be an additional thing to maintain in the template as it would have to implement same functionality the selmer template has right now

yogthos13:02:00

@roelof passing the page in the url or body params would be the way to go

roelof14:02:08

@yogthos I have one question

roelof14:02:38

I can refer to css files this way :

{ % style "/css/bootstrap/css/bootstrap.min.css" %}  

roelof14:02:54

is there a same way for javascript files ?

yogthos14:02:45

yup, there's a script tag {% script "/js/site.js" %}

roelof14:02:17

Thanks, I could not find anything like that

yogthos14:02:52

selmer docs have the comprehensive list of built in tags https://github.com/yogthos/Selmer

yogthos14:02:14

main value there is that it will prepend app context when one is set, if you're just running a standalone app there's no difference from just using the html tag directly