Fork me on GitHub
#hoplon
<
2015-09-21
>
Josh18:09:57

Hey #C08BDAPRA, how can I include a <meta> element in my <head> without referring to cljs.core/meta?

raywillig18:09:59

@jab use html-meta function; will render as meta

raywillig18:09:56

so something like (html-meta :charset "utf-8")

Josh18:09:59

@raywillig: awesome, thanks. Are there any autogenerated docs from the hoplon source published somewhere that at least list the symbols hoplon exports so I could have found that myself?

raywillig18:09:47

docs are WIP, but the whole hoplon source code is probably less than 1500 sloc simple_smile

Josh22:09:04

@raywillig: Word, but even though the wiki docs are WIP, would it be hard to make some autogenerated docs from the source code available? Totally would have helped with a question like this, where grepping the hoplon source for "meta" might have turned up a bunch of false positives, whereas searching through an autogenerated page of exported symbols would have probably turned up html-meta much more easily.

Josh23:09:21

I'm new to Clojure but know a lot of Python projects (as well as other langs) use Sphinx for autogenerated docs. Here's an example from a project I authored: https://bidict.readthedocs.org/en/latest/api.html

Josh23:09:51

cool, thanks @alandipert! hadn't seen http://crossclj.info before

Josh23:09:49

and lo, "html-meta" comes right up on that, \O/

micha23:09:02

i tried a number of doc gen things a while ago for hoplon but none could handle clj and cljs very well

Josh23:09:22

hope something good has come along since then

micha23:09:11

hoplon has been refactored, so perhaps it's time to revisit