This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-01
Channels
- # admin-announcements (3)
- # beginners (25)
- # boot (21)
- # cider (39)
- # cljs-dev (86)
- # cljsrn (20)
- # clojars (4)
- # clojure (70)
- # clojure-canada (1)
- # clojure-greece (101)
- # clojure-poland (16)
- # clojure-russia (35)
- # clojure-spec (202)
- # clojure-uk (24)
- # clojurescript (69)
- # cursive (23)
- # datomic (34)
- # devcards (7)
- # dirac (5)
- # editors (3)
- # emacs (6)
- # events (1)
- # hoplon (52)
- # instaparse (1)
- # jobs (4)
- # jvm (2)
- # lein-figwheel (2)
- # leiningen (10)
- # luminus (2)
- # mount (1)
- # off-topic (12)
- # om (55)
- # om-next (8)
- # onyx (19)
- # pedestal (4)
- # planck (1)
- # re-frame (27)
- # reagent (5)
- # remote-jobs (1)
- # spirituality-ethics (14)
- # tmp-json-parsing (6)
- # untangled (121)
- # yada (32)
@dm3: (sift-jar :exclude ...)
?
i know about sift
, but my question was really about what's the best way to concisely and precisely exclude everything but the files necessary at runtime.
What do you use to support markdown in an Hoplon app?
Can't find tailrecursion.hoplon.markdown
@leontalbot: in the past we rendered it at compile time with a cljs macro that used pegdown
my markdown text is not hardcoded
ok, but how to handle html strings in hoplon?
thanks, I've never used innerHTML or the jQuery thing before
hahaha
(defn markdown [s]
(->> s (.toHTML js/markdown) js/jQuery))
(text "~(forms/markdown "*Hello!*")"))
[object Object]
using jQuery I get Uncaught TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'.
when I wrap jQuery with (text ...)
I get [object Object]
@leontalbot: the code on my current blog may be useful: https://github.com/mynomoto/mynomoto.github.io/blob/sources/blog/src/hoplon/markdown.cljs.hl
@micha yeah, first things first
Hey all... Possibly stupid question here... I'm trying to see if I'm doing something weird or if I misunderstood what loop-tpl does.... Is it supposed to keep things in order? In other words, if I have an array in a cell, if I use loop-tpl over the array, then filter, and conj on more things, etc. should the result of loop-tpl reflect the current order of the array?
@onetom: would that not be what different source types are for in boot