Skip to content

Instantly share code, notes, and snippets.

@LukeWinikates
Created December 31, 2012 02:26
Show Gist options
  • Save LukeWinikates/4416936 to your computer and use it in GitHub Desktop.
Save LukeWinikates/4416936 to your computer and use it in GitHub Desktop.
Example of liquid template for generating JSON -- not pretty, but effective
---
---
[
{% for post in site.posts %}
{ "title": "{{ post.title }}", "url": "{{ post.url}}" },
{% endfor %}
null
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment