2014-02-27 09:30:57 +0000 <Feuerbach> do they use bootstrap-tree too?
2014-02-27 09:31:04 +0000 <Feuerbach> or what do you mean by integrating?
2014-02-27 09:31:21 +0000 <jdnavarro> no, but they have some HTML/CSS registered within the package
2014-02-27 09:31:43 +0000 <jdnavarro> with blaze-html I mean
2014-02-27 09:32:29 +0000 <jdnavarro> so I guess we have to somehow tell blaze-html which CSS and JS to use with the generated HTML
2014-02-27 09:32:55 +0000 <Feuerbach> so here's what to do:
2014-02-27 09:33:09 +0000 <Feuerbach> 1. register our js/css as data files in cabal
2014-02-27 09:33:24 +0000 <Feuerbach> 2. use the generated Paths module to get hold of their location after installation
2014-02-27 09:33:53 +0000 <jdnavarro> yeah
2014-02-27 09:33:57 +0000 <Feuerbach> 3. when generating the report, we should embed css/js in the html
2014-02-27 09:34:03 +0000 <Feuerbach> so that everything is a single file
2014-02-27 09:34:14 +0000 <jdnavarro> right, doesn't look difficult
2014-02-27 09:34:17 +0000 <jdnavarro> https://github.com/jaspervdj/profiteur/blob/master/src/Main.hs#L51
2014-02-27 09:34:42 +0000 <jdnavarro> let's see what comes up
2014-02-27 09:34:50 +0000 <Feuerbach> yeah, except they don't seem to use blaze there
2014-02-27 09:34:59 +0000 <Feuerbach> they just output html by hand
2014-02-27 09:35:05 +0000 <Feuerbach> let's use blaze's combinators
2014-02-27 09:35:12 +0000 <jdnavarro> ok
2014-02-27 10:20:08 +0000 <jdnavarro> I have now a doubt
2014-02-27 10:20:46 +0000 <jdnavarro> should we include the CSS/JS in the same HTML page?
2014-02-27 10:20:52 +0000 <Feuerbach> yes
2014-02-27 10:20:55 +0000 <jdnavarro> ok
2014-02-27 10:20:59 +0000 <jdnavarro> I'll put it at the end
2014-02-27 10:21:20 +0000 <Feuerbach> hmm, shouldn't it be inside <head>? CSS at least
2014-02-27 10:21:50 +0000 <jdnavarro> I have to look it up, a long time without doing HTML/CSS...
2014-02-27 10:22:09 +0000 <jdnavarro> but I remember vaguely there was a way to put it at the end
2014-02-27 10:22:41 +0000 <jdnavarro> I'll put it for now all in <head>
2014-02-27 10:23:04 +0000 <jdnavarro> and check how it comes up
2014-02-27 10:45:45 +0000 <jdnavarro> I'm getting to typecheck correctly but the script example can't find the data files...
2014-02-27 10:46:13 +0000 <jdnavarro> I'm searching in the installed packages but the css/js are nowhere
2014-02-27 10:46:34 +0000 <jdnavarro> I mean installed packages in a cabal sandbox
2014-02-27 10:46:35 +0000 <Feuerbach> did you register them with cabal?
2014-02-27 10:46:49 +0000 <Feuerbach> push (to a branch, perhaps) and I'll have a look
2014-02-27 10:47:35 +0000 <jdnavarro> yeah
2014-02-27 10:47:41 +0000 <jdnavarro> with `data-dir`