duct

2020-02-09T13:30:04.012Z

@uiltjesrups has joined the channel

Danny Almeida 2020-02-09T23:49:31.012200Z

@dionysius.almeida has joined the channel

Danny Almeida 2020-02-09T23:52:33.014200Z

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,'

Danny Almeida 2020-02-09T23:54:11.014700Z

sorry that should have read include-css "semantic-ui/semantic.css"

Danny Almeida 2020-02-09T23:55:07.015400Z

i've include "public" in project.clj under resource-paths

weavejester 2020-02-09T23:56:30.015500Z

First, you need to remove this part.

Danny Almeida 2020-02-09T23:56:57.015700Z

i see..let me try

weavejester 2020-02-09T23:57:44.015900Z

Then your public directory is in resources/your-app-name/public

Danny Almeida 2020-02-09T23:58:48.016200Z

i see... so it's not under the project root directory ?

weavejester 2020-02-09T23:59:16.016400Z

Not directly, no. It’s in the project resources.

weavejester 2020-02-09T23:59:34.016600Z

If you print out your config in the REPL, it should tell you.

Danny Almeida 2020-02-09T23:59:42.016800Z

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 πŸ‘πŸΌ

Danny Almeida 2020-02-10T00:00:14.017Z

sorry for being a noob, but how do i print the config ?

weavejester 2020-02-10T00:01:27.017200Z

(prn config)

weavejester 2020-02-10T00:01:48.017400Z

In your dev namespace, I should add.

Danny Almeida 2020-02-10T00:01:55.017600Z

thank you πŸ™‚

Danny Almeida 2020-02-10T00:02:01.017800Z

yes ..i am in dev namespace

Danny Almeida 2020-02-10T00:02:08.018Z

thank you again for being so prompt

weavejester 2020-02-10T00:02:11.018200Z

I think there might be a pprint as well which formats it better.

Danny Almeida 2020-02-10T00:02:29.018400Z

yes.i have included clojure.pprint

Danny Almeida 2020-02-10T00:02:36.018600Z

for debugging purposes

weavejester 2020-02-10T00:02:36.018800Z

You may need to (prep) the config first, or just run (go).

Danny Almeida 2020-02-10T00:02:54.019Z

thank you

weavejester 2020-02-10T00:03:05.019200Z

The config var holds the configuration after all the modules have been applied, so you can see exactly how it’s configured.

Danny Almeida 2020-02-10T00:03:48.019400Z

that's great .. now i can see all config variables being pulled

Danny Almeida 2020-02-10T00:03:52.019600Z

didn't know that.

Danny Almeida 2020-02-10T00:05:48.019800Z

it's working now.. cheers πŸ‘πŸΌ

weavejester 2020-02-10T00:24:29.020Z

np