Liking cljdoc? Tell your friends :D

clojurenote.enml


create-enml-documentclj

(create-enml-document content)

Creates an ENML document by adding XML headers and wrapping with a <en-note> tag. Original content must already be valid ENML

Creates an ENML document by adding XML headers and wrapping with a <en-note> tag.
Original content must already be valid ENML
raw docstring

default-en-tag-fnsclj


en-media->simple-img-fnclj

(en-media->simple-img-fn resource-map)

An alternate translation for <en-media> that will produce <img> tags if the type of media starts with 'image/' . This function actually produces the function that should be passed to enml-> html, given a resource-map argument. This would be a map of hash-to-URL. It thus requires knowledge of all the resource hashes contained within the ENML ahead of time, and this would typically be gathered by examining the resources of the original Note, possibly using clojurenote.notes/resource->bean-with-body-hash-hex

An alternate translation for <en-media> that will produce <img> tags if the 
type of media starts with 'image/' . This function actually produces the function 
that should be passed to enml-> html, given a resource-map argument. This would be a 
map of hash-to-URL. It thus requires knowledge of all the resource hashes 
contained within the ENML ahead of time, and this would typically be gathered by
examining the resources of the original Note, possibly using 
clojurenote.notes/resource->bean-with-body-hash-hex
raw docstring

en-note->html-documentclj

(en-note->html-document node)

An alternate translation for <en-note> that will create a complete HTML document.

An alternate translation for <en-note> that will create a complete HTML document.
raw docstring

enml->htmlclj

(enml->html enml & optional-en-tag-fns)

Translates an ENML document to HTML by removing headers and translating <en-*> tags. Default translation is simplist possible, but won't (for example) map <en-media> tags to <img> tags. Specify optional en-tag-fns argument in order to customize the tag translation behavior. See documentation on default-en-tag-fns for more detail.

Translates an ENML document to HTML by removing headers and translating <en-*> tags.
Default translation is simplist possible, but won't (for example) map <en-media> tags
to <img> tags. Specify optional en-tag-fns argument in order to customize the tag
translation behavior. See documentation on default-en-tag-fns for more detail.
raw docstring


enml-headerclj


note->htmlclj

(note->html {content :content :as note} & more)

Same as enml->html (including the same optional argument), but takes a Note instead of ENML document. Note can be the original Java object returned by the Evernote API, or can be the 'beaned' version of the same object.

Same as enml->html (including the same optional argument), but takes a Note instead of
ENML document. Note can be the original Java object returned by the Evernote API, or can
be the 'beaned' version of the same object.
raw docstring

plain-spanclj

(plain-span text)

remove-headersclj

(remove-headers enml)

replace-tagsclj

(replace-tags tag-fns node)

walk-fnclj

(walk-fn user-supplied-tag-fns)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close