Clojure JIRAhttp://dev.clojure.org/jira
This file is an XML representation of an issueen-us4.464925-07-2011[NREPL-55] Support custom value rendering middlewarehttp://dev.clojure.org/jira/browse/NREPL-55
tools.nrepl<p>Currently, nREPL's <tt>interruptible-eval</tt> middleware hardcodes a dependency on <tt>pr-values</tt>. It would be nicer if the user could either specify alternate rendering middleware or if nREPL's built-in middleware accepted an arbitrary function to render values with. Specifically, this would enable pretty-printing REPL output.</p>
<p>I've set up a middleware to demonstrate this, in combination with the Puget printing library:<br/>
<a href="https://github.com/greglook/whidbey">https://github.com/greglook/whidbey</a></p>
<p>Currently it is possible to replace the default middleware, but it involves some ugly runtime metadata manipulation which reaches into the nREPL internals. Addressing this would be another step towards simplifying pretty-printing/color integration in the REPL.</p>NREPL-55Support custom value rendering middlewareEnhancementMinorOpenUnresolvedChas EmerickGregory LookTue, 13 May 2014 17:55:48 -0500Tue, 13 May 2014 17:55:48 -05000.2.301Global Rank