Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add :escape-types option #19

Merged
merged 3 commits into from
Mar 7, 2015
Merged

Add :escape-types option #19

merged 3 commits into from
Mar 7, 2015

Conversation

greglook
Copy link
Owner

@greglook greglook commented Mar 7, 2015

@venantius

Tracking PR for feedback. This adds an :escape-types option to Puget, which supplants the escape hatch you introduced in venantius/ultra@2fded31. I originally tried to add this feature to Whidbey, but then I realized that doesn't work well. The problem with doing this at the nrepl-middleware-level is that the escaping only happens on the top level value. Meaning, if a function returns a Datomic DB value, it will be escaped correctly. However, if it returns a simple data structure like a [db] then the database value is still rendered by Puget.

Addresses issues like those raised in venantius/ultra#17.

@greglook greglook self-assigned this Mar 7, 2015
@venantius
Copy link

This looks good to me!

greglook added a commit that referenced this pull request Mar 7, 2015
@greglook greglook merged commit cc877f9 into develop Mar 7, 2015
@greglook greglook deleted the escape-types-option branch March 7, 2015 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants