retrogradeorbit / bootleg

Simple template processing command line tool to help build static websites
Eclipse Public License 2.0
255 stars 12 forks source link

Unexpectedly lazy function #3

Closed chr15m closed 4 years ago

chr15m commented 4 years ago

Not sure if this is a bug or not.

Same files as previous issue.

(mustache "index.template.html" {:content (markdown "README.md")})

Yields:

      <section id="content">clojure.lang.LazySeq@7f4072bd45d0</section>

It appears sci has no doall.

retrogradeorbit commented 4 years ago

Use (markdown "README.html" :html)

markdown has a default return type of :hiccup-seq

chr15m commented 4 years ago

@retrogradeorbit yep that works, thanks. Might be an idea to add some documentation on this, like common gotchas. For example somebody searching for "bootleg LazySeq" would want to find that.