Skip to main content

HTML

  • html

    Render Clojure data structures to a string of HTML. Strings are **not** automatically escaped, but must be manually es...

  • html

    Render Clojure data structures to a compiled representation of HTML. To turn the representation into a string, use clo...

  • raw

    Converts one or more strings into an object that will not be escaped when used with the [[hiccup2.core/html]] macro.

  • <<

    Resolves the variables from your template string from the local-env, or the namespace and puts them into your template...

  • add-tag!

    tag name, fn handler, and maybe tags

  • ensure-list

    Turns the argument into a list if it isn't a list already.

  • env-map

    Puts &env into a map.

  • filter-tag

    Compile-time parser of var tag filters.

  • render

    render takes the string, the context-map and possibly also opts.

  • render-file

    Parses files if there isn't a memoized post-parse vector ready to go, renders post-parse vector with passed context-m...

  • render-template

    vector of ^selmer.node.INodes and a context map.

  • resolve-arg

    Resolves an arg as passed to an add-tag! handler using the provided context-map. A custom tag handler will receive ...

  • set-resource-path!

    set custom location, where templates are being searched for. path may be a java.net.URL instance or a string. If it's ...

  • tag-content

    Parses the content of a tag. Returns a map of tag-name -> args & content, which can then be interpreted by the callin...

  • update-tags

    Assocs in the passed tag to the tags map.