Please sign in to comment.
Make json escaping use the default ruby gem
This makes making a json template a bit simpler and more reliable. The json escaping is delegated to the ruby 'json' gem. I ran into an issue where my content contained characters that were not escaped by the original feed.json implementation.
- Loading branch information...
Showing with 17 additions and 8 deletions.
|@@ -0,0 +1,9 @@|
|+ def json(input)|
|+ Liquid::Template.register_filter self|