Fork me on GitHub
#hoplon
<
2016-07-08
>
onetom01:07:24

hmmm... i see. very nice indeed. thanks!

eric.shao10:07:52

help~ How to inject "vanilla html" in hlisp? for example: I want to directly show the HTML final result of a Rich Text Editor in a same page. or I have a snippet of html in my db, and I pulled it to the cljs, how to display it with hlisp?

eric.shao10:07:46

a newbie programmer question.😛

jumblerg10:07:32

you can use innerHTML if you find yourself needed to add a string of html to one of your elements, eg:

(set! (.-innerHTML (div)) “<p>some text</p>”)

eric.shao10:07:16

Thank you @jumblerg But it doesn’t work right.

jumblerg10:07:48

could you elaborate?

jumblerg10:07:35

@eric.shao: whoops, my mistake. ^^^

eric.shao12:07:59

Maybe one day there is a Hoplon-Rich-Text-Editor that not (rich-text -> html) but (rich-text -> hoplon data structure) .

eric.shao12:07:33

Is there example codes of Hoplon-CMS or Hoplon-Forum?

thedavidmeister13:07:36

@eric.shao: hoplon is all about the front end UI, and castra is about communicating with the server. CMS and forum tools are largely about databases, so there’s not really an example for that.

thedavidmeister13:07:07

but you could totally use hoplon as a neat front end for an existing CMS

thedavidmeister13:07:48

these days CMS systems are selling themselves as “headless” so you can put your own UI on top of them outside whatever they ship with 🙂

thedavidmeister13:07:07

@eric.shao: you don’t need castra, just use normal AJAX to hit any REST API your CMS system provides, but make sure to put the results in a javelin cell, that’s important

eric.shao15:07:13

Thanks @thedavidmeister for your help.😀 hmmm… I think I don't really want a big amount of "hoplon-CMS" codes.I just want to implement a small project (for a Cafe) in the Hoplon's integrated way. I can put a RichTextEditor on the cljs.hl-page , and can present the RichTexteditor's result like "<b>Anyone like ... ?</b>" in the cljs.hl-page.💤

eric.shao15:07:26

Am I the only fish programmer in this channel?😅 Have to sleep 💤

alandipert16:07:21

did the innerHTML not work?