Fork me on GitHub
#babashka
<
2023-08-20
>
Eugen12:08:35

hi @borkdude, I need selmer.parser/resolve-arg in babashka. Do you remember why it's not included? Would it be ok to include it? Context: I am working on a template engine with bb and selmer. I would like to add some handlers and resolve-arg is needed for a tag handler that can convert some code to yaml . resolve-arg uses filter-parser ns https://github.com/yogthos/Selmer/blob/master/src/selmer/filter_parser.clj . filter-parser contains some usefull fn's - I had to implement my own strip-doublequotes .

Eugen18:08:48

hi, this works. thanks Michiel ! I hope I don't need extra functions. If I do, I will try to implement them myself. Waiting for the release šŸ™‚

borkdude18:08:54

you can also install with:

bash <(curl ) --dev-build --dir /tmp
release will probably be somewhere this week

Eugen09:08:34

thanks. I am using the code with other people and it's going to be easier for them to use a release

borkdude09:08:09

yep, somewhere this week, I need to work through some other issues first before a new release

borkdude09:08:28

Note that the --dev-build flag will give you the master version

borkdude12:08:15

ok, released

babardo13:08:31

Hello (sorry by advance for the noobish questions), I'm trying to use websockets with babashka šŸ™‚. I saw that feature was recently added to https://github.com/babashka/http-client/blob/main/src/babashka/http_client/websocket.clj which seem to be included in bb šŸŽ‰ ā€¢ However I cannot import the namespace babashka.http-client.websocket (importing babashka.http-client is fine). Is Babashka only embedding a subset of the lib? ā€¢ I'm successfully using the "whole" library in my project, but I had to create a bb.edn mentioning org.babashka/http-client into deps and includes java in my Dockerfile. Is that the correct way to do so?

babardo13:08:36

Edit: I saw the https://book.babashka.org/#built-in-namespaces, and it is only mentioning babashka.http-client so I guess my first question have an answer šŸ˜…

borkdude15:08:58

we can add this namespace

babardo15:08:31

Oh it would be very nice :hugging_face:

borkdude16:08:49

can you create an issue as a reminder?

šŸ‘ 2