perun

Discuss perun static site generator
bhagany 2017-02-15T04:41:00.000350Z

I haven't gotten ahold of a windows machine yet, but I was able to identify some problems and fix a few (locally so far). The crux of the problem is that we're too lax about converting from paths to urls and back. Shouldn't be too difficult to fix fully.

2017-02-15T08:45:10.000351Z

@bhagany MS offers free VMs for testing. Officially they are for Web Devs to test IE8-IE11, but I’m sure they won’t mind(; https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/

2017-02-15T08:45:53.000354Z

(And this finalises the quota for MS related links that I’m going to share anywhere in 2017^^)

Yehonathan Sharvit 2017-02-15T09:27:55.000356Z

Hello guys!

Yehonathan Sharvit 2017-02-15T09:28:31.000357Z

Someone mentioned me on slack a couple of weeks ago that he wanted to make a klipse integration for perun

Yehonathan Sharvit 2017-02-15T09:28:42.000358Z

Do you know if it has been done?

pesterhazy 2017-02-15T09:35:55.000359Z

what would the advantage of that be?

pesterhazy 2017-02-15T09:36:10.000360Z

I use perun (and am going to use klipse) so I'm interested obv

pesterhazy 2017-02-15T09:36:39.000361Z

but you can just add the script to the <head> and it should klipsify all code tags, no?

Yehonathan Sharvit 2017-02-15T09:39:27.000362Z

A couple of advantages:

Yehonathan Sharvit 2017-02-15T09:39:37.000363Z

1. make the integration smoother (you don’t have to deal with Klipse urls)

Yehonathan Sharvit 2017-02-15T09:40:34.000365Z

2. simplify the configuration: for instance for non-clojure snippets, you want to use the minified version of klipse

Yehonathan Sharvit 2017-02-15T09:40:55.000366Z

If I could just remember who is the guy that slacked with me about that… :thinking_face:

Yehonathan Sharvit 2017-02-15T09:41:08.000367Z

… He mention other advantages

pesterhazy 2017-02-15T09:41:43.000369Z

haha

pesterhazy 2017-02-15T09:41:50.000370Z

lost in the 10,000 message black hole?

Yehonathan Sharvit 2017-02-15T09:43:44.000371Z

Even if it were 1,000,000 it would have been lost

Yehonathan Sharvit 2017-02-15T09:43:52.000372Z

I’m looking in https://clojurians-log.clojureverse.org/klipse/index.html

Yehonathan Sharvit 2017-02-15T09:44:12.000373Z

But I cannot find a way to restrict my search to the #klipse channel

Yehonathan Sharvit 2017-02-15T09:45:15.000374Z

😠

pesterhazy 2017-02-15T09:48:50.000375Z

hm

pesterhazy 2017-02-15T09:49:02.000376Z

we should build an algolia based search for clojurians

pesterhazy 2017-02-15T09:49:07.000377Z

that'd be awesome!

bhagany 2017-02-15T13:44:32.000378Z

@munen thanks!

2017-02-15T16:29:27.000379Z

@bhagany I fixed the issues on windows for me with a few changes to perun.core, but am unsure if there's a better way to structure the solution than my current one. Right now I just have the following constants

(def file-separator (System/getProperty "file.separator"))
(def file-separator-regex (re-pattern
                           (java.util.regex.Pattern/quote
                            file-separator)))
and have replaced all hardcoded slashes and regexes that use slashes with these. Any thoughts? Should I just make a PR?

bhagany 2017-02-15T16:51:33.000380Z

@jjttjj It seemed more complicated to me in a few places, because for urls, you always want "/" instead of the system file separator. I would like to see your code though.

bhagany 2017-02-15T16:52:18.000381Z

Unfortunately, I am a ... bit busy. I just found out the company I work for is going under, so um... I'm not quite sure when I'll be able to get back to this.

Yehonathan Sharvit 2017-02-15T19:54:30.000382Z

@pesterhazy Regarding the integration of klipse that I mentioned earlier today - It was not perun but cyrogen. And it has been done http://cryogenweb.org/docs/klipse.html

pesterhazy 2017-02-15T20:02:06.000384Z

Ah cool!