This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-02-09
Channels
- # announcements (20)
- # beginners (115)
- # calva (2)
- # clj-kondo (1)
- # clojure (48)
- # clojure-uk (21)
- # clojurescript (20)
- # css (1)
- # cursive (3)
- # datascript (11)
- # datomic (6)
- # duct (26)
- # emacs (5)
- # funcool (6)
- # off-topic (45)
- # perun (1)
- # precept (4)
- # quil (2)
- # re-frame (1)
- # shadow-cljs (251)
- # tools-deps (27)
- # uncomplicate (9)
Hi, I'm new to duct framework. How do you serve files from public
directory ? I've downloaded semantic-ui
files under public/semantic-ui
, but when i include them using include-css "semantic-ui/semantic.js"
..i get a resource not found,'
sorry that should have read include-css "semantic-ui/semantic.css"
i've include "public"
in project.clj
under resource-paths
First, you need to remove this part.
i see..let me try
Then your public directory is in resources/your-app-name/public
i see... so it's not under the project root directory ?
Not directly, no. It’s in the project resources.
If you print out your config in the REPL, it should tell you.
BTW, thank you so much for this framework..although I've just been trying it out for a day, I love the way it's structured 👍:skin-tone-3:
sorry for being a noob, but how do i print the config ?
(prn config)
In your dev
namespace, I should add.
thank you 🙂
yes ..i am in dev namespace
thank you again for being so prompt
I think there might be a pprint
as well which formats it better.
yes.i have included clojure.pprint
for debugging purposes
You may need to (prep)
the config first, or just run (go)
.
thank you
The config
var holds the configuration after all the modules have been applied, so you can see exactly how it’s configured.
that's great .. now i can see all config variables being pulled
didn't know that.
it's working now.. cheers 👏:skin-tone-3: